2011-10-21 01:47:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2011-11-07 22:58:56 +00:00
|
|
|
|
2011-10-21 01:47:49 +00:00
|
|
|
START=20
|
2011-11-07 22:58:56 +00:00
|
|
|
|
|
|
|
SERVICE_DAEMONIZE=1
|
|
|
|
SERVICE_WRITE_PID=1
|
2011-10-21 01:47:49 +00:00
|
|
|
|
|
|
|
start() {
|
|
|
|
stop
|
2011-10-26 18:30:55 +00:00
|
|
|
[ -e /proc/sys/kernel/core_pattern ] && {
|
|
|
|
ulimit -c unlimited
|
|
|
|
echo '/tmp/%e.%p.%s.%t.core' > /proc/sys/kernel/core_pattern
|
|
|
|
}
|
2011-11-07 22:58:56 +00:00
|
|
|
service_start /sbin/netifd
|
2011-10-26 18:30:55 +00:00
|
|
|
sleep 1
|
2011-10-21 01:47:49 +00:00
|
|
|
}
|
|
|
|
|
2012-03-19 21:09:51 +00:00
|
|
|
restart() {
|
|
|
|
ifdown -a
|
|
|
|
sleep 1
|
|
|
|
stop
|
|
|
|
start
|
|
|
|
}
|
|
|
|
|
2011-11-07 22:58:56 +00:00
|
|
|
stop() {
|
|
|
|
service_stop /sbin/netifd
|
2011-10-21 01:47:49 +00:00
|
|
|
}
|
|
|
|
|
2011-11-07 22:58:56 +00:00
|
|
|
reload() {
|
|
|
|
ubus call network reload
|
2011-10-21 01:47:49 +00:00
|
|
|
}
|