mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 07:01:44 +02:00
netifd: if core dump support is enabled, use it. also add some delay after start to avoid race conditions with other init scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28611 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8552f681e1
commit
75ca86fa31
@ -4,7 +4,12 @@ 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() {
|
||||
|
Loading…
Reference in New Issue
Block a user