flasher: look for more bootfile tars
[pandora-misc.git] / flasher / rootfs / etc / updater.sh
index 67dcc42..26dcd36 100755 (executable)
@@ -23,6 +23,7 @@ then
 fi
 
 mdevs="/dev/mmcblk0p1 /dev/mmcblk0p2"
+bootfiles="bootf.tgz bootfiles.tar.gz uimage.tar.gz"
 
 cd /tmp
 
@@ -36,10 +37,13 @@ do
                continue;
        fi
 
-       if [ -e $mpoint/sysf.tgz ]
-       then
-               tar xzvf $mpoint/sysf.tgz
-       fi
+       for bf in $bootfiles
+       do
+               if [ -e $mpoint/$bf ]
+               then
+                       tar xzvf $mpoint/$bf
+               fi
+       done
 
        if [ -x $mpoint/finalize.sh ]
        then