2 echo "image installation is starting..." $1 $2 $3 > /tmp
/instimg.log
4 while pidof enigma
> /dev
/null
; do
5 if [ $i -gt 14 ] ; then
6 echo "enigma is not terminating itself... so, killing it" >> /tmp
/instimg.log
10 echo "waiting for enigma to terminate:" $pids "..." >> /tmp
/instimg.log
15 echo "enigma has shut down... continuing with image installation..." >> /tmp
/instimg.log
19 mount
-t cramfs
$2 /tmp
/image
-o loop
23 rm $1/root
/platform
/kernel
/os
24 echo "cramfs installed." >> /tmp
/instimg.log
26 mount
-t squashfs
$3 /tmp
/image
-o loop
30 echo "squashfs installed." >> /tmp
/instimg.log
36 echo "var constructed." >> /tmp
/instimg.log
37 rm /var
/etc
/.dont_restart_enigma
38 echo "restarting enigma... done." >> /tmp
/instimg.log