2013-05-07 08:39:44 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Start ptpd
|
|
|
|
#
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2015-10-03 23:29:57 +02:00
|
|
|
printf "Starting ptpd: "
|
2013-05-07 08:39:44 +02:00
|
|
|
start-stop-daemon -S -q -x /usr/sbin/ptpd -- -S
|
|
|
|
if [ $? != 0 ]; then
|
|
|
|
echo "FAILED"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo "OK"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
stop)
|
2015-10-03 23:29:57 +02:00
|
|
|
printf "Stopping ptpd: "
|
2013-05-07 08:39:44 +02:00
|
|
|
start-stop-daemon -K -q -x /usr/sbin/ptpd
|
|
|
|
echo "OK"
|
|
|
|
;;
|
|
|
|
restart|reload)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $?
|