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