projects
/
oweals
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
reverted to fix mtd glitch
[oweals/openwrt.git]
/
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 /sbin/resetmon ; 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
13
umount rom/dev
14
else
15
export FAILSAFE=true
16
fi
17
mount none /tmp -t ramfs
18
exec /sbin/init