projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8832726
)
netifd: if core dump support is enabled, use it. also add some delay after start...
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 26 Oct 2011 18:30:55 +0000
(18:30 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 26 Oct 2011 18:30:55 +0000
(18:30 +0000)
SVN-Revision: 28611
package/netifd/files/etc/init.d/netifd
patch
|
blob
|
history
diff --git
a/package/netifd/files/etc/init.d/netifd
b/package/netifd/files/etc/init.d/netifd
index e1047e7a81094eb62a3c5af8861f4ed7cbbb00c8..23b71863331a17f5246ad7f46001dc89632bb731 100755
(executable)
--- a/
package/netifd/files/etc/init.d/netifd
+++ b/
package/netifd/files/etc/init.d/netifd
@@
-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() {