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