projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ccd3ab5bee6d94c6b28a5c0d82da49f36eb7ea91
[openwrt.git]
/
root
/
etc
/
preinit
1
#!/bin/sh
2
mount none /proc -t proc
3
mtd unlock mtd4
4
if /sbin/resetmon ; then
5
mount -t jffs2 /dev/mtdblock/4 /jffs
6
pivot_root /jffs /jffs/rom
7
mount none /dev -t devfs
8
mount none /proc -t proc
9
umount rom/proc
10
umount rom/dev
11
else
12
FAILSAFE=true
13
export FAILSAFE
14
fi
15
mount none /tmp -t ramfs
16
exec /sbin/init