diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2013-05-07 06:39:44 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-05-11 22:23:58 +0200 |
commit | 7d6449bb165c8708652bbc3e0373cc6d70299afe (patch) | |
tree | ca373b2679bd9924979a4096aedb4e46536e7895 /package/ptpd/S65ptpd | |
parent | 92651931e72afad0f829d651ad3d0286b5a14e06 (diff) | |
download | buildroot-novena-7d6449bb165c8708652bbc3e0373cc6d70299afe.tar.gz buildroot-novena-7d6449bb165c8708652bbc3e0373cc6d70299afe.zip |
ptpd: new package
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>
Diffstat (limited to 'package/ptpd/S65ptpd')
-rwxr-xr-x | package/ptpd/S65ptpd | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/ptpd/S65ptpd b/package/ptpd/S65ptpd new file mode 100755 index 000000000..4206c5e0c --- /dev/null +++ b/package/ptpd/S65ptpd @@ -0,0 +1,29 @@ +#!/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 $? |