u
This commit is contained in:
@@ -62,17 +62,15 @@ the_file=/etc/fstab
|
|||||||
if [ -f "${the_file}" ]; then
|
if [ -f "${the_file}" ]; then
|
||||||
if ! more ${the_file} | grep 'syncDir'
|
if ! more ${the_file} | grep 'syncDir'
|
||||||
then
|
then
|
||||||
#echo "" | sudo tee -a ${the_file}
|
echo "" | sudo tee -a ${the_file}
|
||||||
#echo "# auto mount syncDir" | 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 "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" | sudo tee -a ${the_file}
|
||||||
|
|
||||||
sudo echo "" >> ${the_file}
|
|
||||||
sudo echo "# auto mount syncDir" >> ${the_file}
|
|
||||||
sudo echo "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" >> ${the_file}
|
|
||||||
|
|
||||||
|
echo
|
||||||
echo "auto mount of syncDir added to '${the_file}'"
|
echo "auto mount of syncDir added to '${the_file}'"
|
||||||
else
|
else
|
||||||
echo "auto mount of syncDir already exists in '${the_file}'"
|
echo
|
||||||
|
echo "auto mount of syncDir already existed in '${the_file}'"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user