mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-16 08:27:10 +02:00
75ca86fa31
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28611 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
426 B
Bash
Executable File
24 lines
426 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
START=20
|
|
PIDFILE=/var/run/netifd.pid
|
|
|
|
start() {
|
|
stop
|
|
[ -e /proc/sys/kernel/core_pattern ] && {
|
|
ulimit -c unlimited
|
|
echo '/tmp/%e.%p.%s.%t.core' > /proc/sys/kernel/core_pattern
|
|
}
|
|
start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/netifd
|
|
sleep 1
|
|
}
|
|
|
|
reload() {
|
|
ubus call network reload
|
|
}
|
|
|
|
stop() {
|
|
[ -e "$PIDFILE" ] || return
|
|
start-stop-daemon -K -p $PIDFILE -x /sbin/netifd
|
|
rm -f "$PIDFILE"
|
|
}
|