7d6449bb16
Add the new ptpd package, loosely based on the one from bug #2305. This one handles the IEEE 1588-2002 spec. [Peter: mark init script as executable] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
30 lines
380 B
Bash
Executable File
30 lines
380 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Start ptpd
|
|
#
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n "Starting ptpd: "
|
|
start-stop-daemon -S -q -x /usr/sbin/ptpd -- -S
|
|
if [ $? != 0 ]; then
|
|
echo "FAILED"
|
|
exit 1
|
|
else
|
|
echo "OK"
|
|
fi
|
|
;;
|
|
stop)
|
|
echo -n "Stopping ptpd: "
|
|
start-stop-daemon -K -q -x /usr/sbin/ptpd
|
|
echo "OK"
|
|
;;
|
|
restart|reload)
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|