mount debugfs by default
authorFelix Fietkau <nbd@openwrt.org>
Mon, 23 Nov 2009 20:35:05 +0000 (20:35 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 23 Nov 2009 20:35:05 +0000 (20:35 +0000)
SVN-Revision: 18502

package/base-files/files/etc/init.d/boot

index 3da0d6bc94a6b843e4e343ad47688dea2278d628..aa9e967787467e72a90a6bcceb799b1119f3dabf 100755 (executable)
@@ -59,6 +59,7 @@ start() {
        touch /var/log/lastlog
        touch /tmp/resolv.conf.auto
        ln -sf /tmp/resolv.conf.auto /tmp/resolv.conf
+       grep -q debugfs /proc/filesystems && mount -t debugfs debugfs /sys/kernel/debug
        [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
 
        killall -q hotplug2