This commit is contained in:
tuxwarrior
2024-05-06 17:16:39 -05:00
parent 0d1d5235bd
commit 3bdb35b2db

View File

@@ -62,9 +62,13 @@ the_file=/etc/fstab
if [ -f "${the_file}" ]; then
if ! more ${the_file} | grep 'syncDir'
then
echo "" | sudo tee -a ${the_file}
echo "# auto mount syncDir" | sudo tee -a ${the_file}
echo "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" | sudo tee -a ${the_file}
#echo "" | sudo tee -a ${the_file}
#echo "# auto mount syncDir" | sudo tee -a ${the_file}
#echo "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" | sudo tee -a ${the_file}
echo "" >> ${the_file}
echo "# auto mount syncDir" >> ${the_file}
echo "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" >> ${the_file}
echo "auto mount of syncDir added to '${the_file}'"
else