2006-10-04 20:57:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2007-05-10 10:38:53 +00:00
|
|
|
START=50
|
2006-08-01 16:40:03 +00:00
|
|
|
|
|
|
|
LOG_D=/var/log
|
|
|
|
RUN_D=/var/run
|
2010-03-14 02:10:26 +00:00
|
|
|
PID_F=$RUN_D/dhcp-fwd.pid
|
2006-08-01 16:40:03 +00:00
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
start() {
|
|
|
|
[ -d $LOG_D ] || mkdir -p $LOG_D
|
|
|
|
[ -d $RUN_D ] || mkdir -p $RUN_D
|
|
|
|
dhcp-fwd
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
[ -f $PID_F ] && kill $(cat $PID_F)
|
|
|
|
}
|
2006-08-01 16:40:03 +00:00
|
|
|
|