projects
/
packages.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c12cc41cdcfc5fd4ad5a908c264cc7d4eeb211d8
[packages.git]
/
ipv6
/
totd
/
files
/
totd.init
1
#!/bin/sh /etc/rc.common
2
# Copyright (C) 2006 OpenWrt.org
3
4
START=60
5
BIN=totd
6
RUN_D=/var/run
7
PID_F=$RUN_D/$BIN.pid
8
9
10
start() {
11
mkdir -p $RUN_D
12
$BIN -c /etc/totd.conf
13
}
14
15
stop() {
16
[ -f $PID_F ] && kill $(cat $PID_F)
17
}
18
19
restart() {
20
stop
21
sleep 1
22
start
23
}