packages/ipv6/totd/files/totd.init
florian aebcd3b68b Move totd to ipv6 section, more adequate
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6387 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-02-26 11:36:38 +00:00

24 lines
255 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=60
BIN=totd
RUN_D=/var/run
PID_F=$RUN_D/$BIN.pid
start() {
mkdir -p $RUN_D
$BIN -c /etc/totd.conf
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
}
restart() {
stop
sleep 1
start
}