Restart mounts on session open

parent 69dfb040
......@@ -7,7 +7,11 @@ do
sleep 10
done
[ `grep -c '^//ecole-dc/' /etc/mtab` -gt 0 ] && exit 0
awk '/^\/\/ecole-dc/{print $2}' /etc/msab | \
while read dest
do
umount $dest
done
awk '/^\/\/ecole-dc/{print $2}' /etc/fstab | \
while read dest
do
......
......@@ -5,7 +5,8 @@ SCOPE2=CE1-CE2
SCOPE3=CM1-CM2
SHARE_DIR="/home/shares/$USER"
while ! /bin/ping -c 2 ecole-dc; do sleep 10; done;
# Restart mounts
/opt/primtux-eole/mount_shares.sh
for d in 01-cp 02-ce1-ce2 03-cm1-cm2
do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment