summaryrefslogtreecommitdiff
path: root/openwrt/target
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2005-03-01 06:56:22 +0000
committerMike Baker <mbm@openwrt.org>2005-03-01 06:56:22 +0000
commit658019abd02f01fd32946cba8cea7f30b79954f7 (patch)
tree2c14bedc8e036cd7e4070f31d843d0db4795a4ba /openwrt/target
parent58b7ed6d40babf54d63f52442a6f5abc03770ff6 (diff)
downloadmtk-20170518-658019abd02f01fd32946cba8cea7f30b79954f7.zip
mtk-20170518-658019abd02f01fd32946cba8cea7f30b79954f7.tar.gz
mtk-20170518-658019abd02f01fd32946cba8cea7f30b79954f7.tar.bz2
bugfix
SVN-Revision: 297
Diffstat (limited to 'openwrt/target')
-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 30c025b..01df205 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