mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
13 lines
263 B
Bash
Executable File
13 lines
263 B
Bash
Executable File
#!/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
|