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
master
Felix Fietkau 2011-10-26 18:30:55 +00:00
parent f43b8fa09d
commit 794228a96c
1 changed files with 5 additions and 0 deletions

View File

@ -4,7 +4,12 @@ PIDFILE=/var/run/netifd.pid
start() { start() {
stop 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 start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/netifd
sleep 1
} }
reload() { reload() {