2006-12-27 19:21:05 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2011-10-24 22:13:18 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-12-27 19:21:05 +00:00
|
|
|
|
2008-04-22 23:33:19 +00:00
|
|
|
START=65
|
2011-11-14 18:30:05 +00:00
|
|
|
STOP=65
|
2007-02-28 12:30:57 +00:00
|
|
|
|
2013-09-26 12:50:25 +00:00
|
|
|
USE_PROCD=1
|
2007-02-28 12:30:57 +00:00
|
|
|
|
2013-09-26 12:50:25 +00:00
|
|
|
start_service() {
|
2006-12-27 19:21:05 +00:00
|
|
|
# ln -sf /dev/ttyS0 /dev/gps0
|
|
|
|
# /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf
|
2011-11-14 18:30:05 +00:00
|
|
|
user_exists ntp 123 || user_add ntp 123 123 ntp /var/lib/ntp
|
|
|
|
group_exists ntp 123 || group_add ntp 123
|
|
|
|
mkdir -p /var/lib/ntp
|
|
|
|
chown -R ntp:ntp /var/lib/ntp
|
2006-12-27 19:21:05 +00:00
|
|
|
|
2013-09-26 12:50:25 +00:00
|
|
|
procd_open_instance
|
|
|
|
procd_set_param command /sbin/ntpd -g -u ntp:ntp -p /var/run/ntpd.pid -n
|
|
|
|
procd_close_instance
|
2006-12-27 19:21:05 +00:00
|
|
|
}
|