From 652fc44f0a62aafe9c32b5df8559d48cda2a5fd5 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Thu, 5 Jan 2006 01:41:29 +0000
Subject: mount sysfs at boot on linux 2.6

SVN-Revision: 2835
---
 openwrt/package/base-files/default/etc/preinit | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'openwrt/package/base-files/default')

diff --git a/openwrt/package/base-files/default/etc/preinit b/openwrt/package/base-files/default/etc/preinit
index ac9039c..f82823e 100755
--- a/openwrt/package/base-files/default/etc/preinit
+++ b/openwrt/package/base-files/default/etc/preinit
@@ -21,4 +21,9 @@ mount_root ${FAILSAFE:+failsafe}
 	{ mount|grep "on / type jffs2" 1>&-; } || firstboot
 }
 
+grep sysfs /proc/filesystems >&- 2>&- && {
+	mkdir -p /sys
+	mount -t sysfs none /sys
+}
+
 exec /sbin/init
-- 
cgit v1.1