buildroot/package/ptpd2/S65ptpd2
Gustavo Zacarias 5b190e6b6d ptpd2: new package
Add the ptpd2 package, handles the IEEE 1588-2008 spec which is not
backward compatible to IEEE 1588-2002.

[Peter: mark init script as executable]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-05-11 22:28:44 +02:00

30 lines
385 B
Bash
Executable File

#!/bin/sh
#
# Start ptpd2
#
case "$1" in
start)
echo -n "Starting ptpd2: "
start-stop-daemon -S -q -x /usr/sbin/ptpd2 -- -g
if [ $? != 0 ]; then
echo "FAILED"
exit 1
else
echo "OK"
fi
;;
stop)
echo -n "Stopping ptpd2: "
start-stop-daemon -K -q -x /usr/sbin/ptpd2
echo "OK"
;;
restart|reload)
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?