2006-12-27 19:21:05 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2008-04-22 23:33:19 +00:00
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2006-12-27 19:21:05 +00:00
|
|
|
|
2008-04-22 23:33:19 +00:00
|
|
|
START=65
|
2007-02-28 12:30:57 +00:00
|
|
|
|
2008-01-14 10:38:27 +00:00
|
|
|
PIDFILE="/var/run/ntpd.pid"
|
2007-02-28 12:30:57 +00:00
|
|
|
|
2006-12-27 19:21:05 +00:00
|
|
|
start() {
|
|
|
|
# ln -sf /dev/ttyS0 /dev/gps0
|
|
|
|
# /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf
|
2008-01-14 10:38:27 +00:00
|
|
|
stop
|
2007-02-28 12:30:57 +00:00
|
|
|
/usr/sbin/ntpd -g -p $PIDFILE
|
2006-12-27 19:21:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2007-02-28 12:30:57 +00:00
|
|
|
[ -f "$PIDFILE" ] && kill $(cat "$PIDFILE") 2>/dev/null >/dev/null
|
2006-12-27 19:21:05 +00:00
|
|
|
}
|