summaryrefslogtreecommitdiffstats
path: root/usr/local/bin/runmsntp.sh
blob: f7100b90767c77d4b15d63df13fd84d6cf91244a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# write our PID to file
echo $$ > $1

# execute msntp in endless loop; restart if it
# exits (wait 1 second to avoid restarting too fast in case
# the network is not yet setup)
while true; do
	/usr/local/bin/msntp -r -P no -l $2 -x $3 $4
	sleep 1
done
OpenPOWER on IntegriCloud