748b6067dd74042858d39869a63daf54ef96b060
[openwrt.git] / obsolete-buildroot / sources / openwrt / root / etc / preinit
1 #!/bin/sh
2 mount none /proc -t proc
3 insmod diag
4 echo 0x01 > /proc/sys/diag
5 sleep 1
6 if [ $(cat /proc/sys/reset) = 0 ] ; then
7 mtd unlock mtd4
8 mount -t jffs2 /dev/mtdblock/4 /jffs
9 pivot_root /jffs /jffs/rom
10 mount none /dev -t devfs
11 mount none /proc -t proc
12 umount rom/proc rom/dev
13 else
14 export FAILSAFE=true
15 fi
16 mount none /tmp -t ramfs
17 exec /sbin/init
This page took 0.042088 seconds and 3 git commands to generate.