cat etc init rcS bin sh if -b dev mtdblock then cd var tmp zcat dev mt

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# cat /etc/init.d/rcS
#! /bin/sh
.....
if [ -b /dev/mtdblock/5 ]
then
cd /var/tmp
zcat /dev/mtdblock/5 | tar xf -
if [ -d /var/tmp/mycfg ]
then
chmod 777 /var/tmp/mycfg/*.sh
if [ -f /var/tmp/mycfg/init.sh ]
then
sleep 15
/var/tmp/mycfg/init.sh
fi
fi
fi