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