projects
/
openwrt
/
svn-archive
/
archive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[packages] ntpd: let ntpd create the pid file
[openwrt/svn-archive/archive.git]
/
net
/
ntpd
/
files
/
ntpd.init
1
#!/bin/sh /etc/rc.common
2
# Copyright (C) 2006-2011 OpenWrt.org
3
4
START
=
65
5
6
SERVICE_USE_PID
=
1
7
SERVICE_DAEMONIZE
=
1
8
9
start
() {
10
# ln -sf /dev/ttyS0 /dev/gps0
11
# /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf
12
service_start
/
sbin
/
ntpd
-g -p
/
var
/
run
/
ntpd.pid
13
}
14
15
stop
() {
16
service_stop
/
sbin
/
ntpd
17
}