diff options
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/generic-2.6/base-files/init | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/generic-2.6/base-files/init b/target/linux/generic-2.6/base-files/init index 9f595c0f9..98002aba3 100755 --- a/target/linux/generic-2.6/base-files/init +++ b/target/linux/generic-2.6/base-files/init @@ -3,11 +3,12 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin mount none /proc -t proc +mount none /sys -t sysfs if grep devfs /proc/filesystems > /dev/null; then mount none /dev -t devfs -else - mount -t sysfs none /sys + +elif [ -x /sbin/hotplug2 ]; then mount -t tmpfs tmpfs /dev -o size=512K mknod /dev/console c 5 1 mkdir /dev/pts |