Harder fix for #27

parent 869a3f8e
......@@ -7,6 +7,8 @@ Wants=network-online.target
Type=oneshot
KillMode=none
ExecStart=/opt/primtux-eole/mount_shares.sh
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target
#!/bin/bash
# Ensure ecole-dc is reachable before mounts
while ! ping -c 1 ecole-dc > /dev/null 2>&1
do
echo "Cannot reach ecole-dc, waiting 10 sec"
sleep 10
done
[ `grep -c '^//ecole-dc/' /etc/mtab` -gt 0 ] && exit 0
awk '/^\/\/ecole-dc/{print $2}' /etc/fstab | \
while read dest
......
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