summaryrefslogtreecommitdiffstats
path: root/openwrt/target/default/target_skeleton/etc/preinit
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/target/default/target_skeleton/etc/preinit')
-rwxr-xr-xopenwrt/target/default/target_skeleton/etc/preinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/target/default/target_skeleton/etc/preinit b/openwrt/target/default/target_skeleton/etc/preinit
index 30c025be2..01df20583 100755
--- a/openwrt/target/default/target_skeleton/etc/preinit
+++ b/openwrt/target/default/target_skeleton/etc/preinit
@@ -1,6 +1,5 @@
#!/bin/sh
mount none /proc -t proc
-mount none /tmp -t ramfs
insmod diag
echo 0x01 > /proc/sys/diag
sleep 1
@@ -17,7 +16,8 @@ else
pivot_root /jffs /jffs/rom
mount none /dev -t devfs
mount none /proc -t proc
- umount rom/proc
+ umount rom/proc rom/dev
fi
fi
+mount none /tmp -t ramfs
exec /sbin/init