Unverified Commit 69f2c537 authored by David Beniamine's avatar David Beniamine
Browse files

Harder fix for #27

parent 869a3f8e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
+8 −0
Original line number Diff line number Diff line
#!/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