netifd: if core dump support is enabled, use it. also add some delay after start...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 26 Oct 2011 18:30:55 +0000 (18:30 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 26 Oct 2011 18:30:55 +0000 (18:30 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28611 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/netifd/files/etc/init.d/netifd

index e1047e7..23b7186 100755 (executable)
@@ -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() {
This page took 0.025253 seconds and 4 git commands to generate.