diff --git a/plugin/backupsuite.sh b/plugin/backupsuite.sh index b82dd4b..178e7c5 100755 --- a/plugin/backupsuite.sh +++ b/plugin/backupsuite.sh @@ -209,7 +209,13 @@ else elif [ -f /proc/stb/info/gbmodel ] ; then SEARCH=$( cat /proc/stb/info/gbmodel | tr "A-Z" "a-z" | tr -d '[:space:]' ) elif [ -f /proc/stb/info/boxtype ] ; then - SEARCH=$( cat /proc/stb/info/boxtype | tr "A-Z" "a-z" | tr -d '[:space:]' ) + if grep H9 /proc/stb/info/boxtype > /dev/null ; then + SEARCH=$( cat /proc/stb/info/model ) + elif grep H1 /proc/stb/info/boxtype > /dev/null ; then + SEARCH=$( cat /proc/stb/info/model ) + else + SEARCH=$( cat /proc/stb/info/boxtype | tr "A-Z" "a-z" | tr -d '[:space:]' ) + fi elif [ -f /proc/stb/info/vumodel ] ; then SEARCH=$( cat /proc/stb/info/vumodel | tr "A-Z" "a-z" | tr -d '[:space:]' ) else @@ -374,7 +380,7 @@ else elif [ $SEARCH = "sf8008" -o $SEARCH = "sf8008m" -o $SEARCH = "ustym4kpro" -o $SEARCH = "gbtrio4k" -o $SEARCH = "gbip4k" -o $SEARCH = "viper4k" -o $SEARCH = "beyonwizv2" ] ; then dd if=/dev/mmcblk0p12 of=$WORKDIR/$KERNELNAME log "Kernel resides on /dev/mmcblk0p12" - elif [ $SEARCH = "hd60" -o $SEARCH = "hd61" -o $SEARCH = "h9se.s" $SEARCH = "h9se.2s" $SEARCH = "h9se.2h" -o $SEARCH = "h9combo" -o $SEARCH = "h9twin" -o $SEARCH = "h9combose" -o $SEARCH = "h9twinse" -o $SEARCH = "h10" -o $SEARCH = "h11" ] ; then + elif [ $SEARCH = "hd60" -o $SEARCH = "hd61" -o $SEARCH = "h9se" -o $SEARCH = "h9combo" -o $SEARCH = "h9twin" -o $SEARCH = "h9combose" -o $SEARCH = "h9twinse" -o $SEARCH = "h10" -o $SEARCH = "h11" ] ; then $LIBDIR/enigma2/python/Plugins/Extensions/BackupSuite/findkerneldevice.sh KERNEL=`readlink -n /dev/kernel` log "Kernel resides on $KERNEL" @@ -437,13 +443,16 @@ elif [ $ACTION = "force" ] ; then echo "rename this file to 'force.update' to be able to flash this backup" > "$MAINDEST/noforce.update" echo "Rename the file in the folder /vuplus/$SEARCH/noforce.update to /vuplus/$SEARCH/force.update to flash this image" fi +if [ $SEARCH = "zero4k" -o $SEARCH = "uno4k" -o $SEARCH = "uno4kse" -o $SEARCH = "ultimo4k" -o $SEARCH = "solo4k" -o $SEARCH = "duo4k" -o $SEARCH = "duo4kse" ] ; then + echo "rename this file to 'mkpart.update' for forces create partition and kernel update." > "$MAINDEST/nomkpart.update" +fi image_version > "$MAINDEST/imageversion" if [ $SEARCH = "lunix3-4k" -o $SEARCH = "lunix4k" -o $SEARCH = "galaxy4k" -o $SEARCH = "revo4k" ] ; then if [ -f /boot/initrd_run.bin ] ; then cp /boot/initrd_run.bin "$MAINDEST/initrd_run.bin" fi fi -if [ $SEARCH = "h9" -o $SEARCH = "h9se" -o $SEARCH = "h9combo" -o $SEARCH = "h9combose" -o $SEARCH = "i55plus" -o $SEARCH = "i55se" -o $SEARCH = "h10" -o $SEARCH = "hzero" -o $SEARCH = "h8" -o $SEARCH = "h8.2h" -o $SEARCH = "h9.s" -o $SEARCH = "h9.t" -o $SEARCH = "h9.2h" -o $SEARCH = "h9.2s" -o $SEARCH = "h9twin" ] ; then +if [ $SEARCH = "h9" -o $SEARCH = "h9se" -o $SEARCH = "h9combo" -o $SEARCH = "h9combose" -o $SEARCH = "i55plus" -o $SEARCH = "i55se" -o $SEARCH = "h10" -o $SEARCH = "hzero" -o $SEARCH = "h8" -o $SEARCH = "h8.2h" -o $SEARCH = "h9.s" -o $SEARCH = "h9.t" -o $SEARCH = "h9.2h" -o $SEARCH = "h9.2s" -o $SEARCH = "h9twin" -o $SEARCH = "h9twinse" ] ; then log "Zgemma hisil found, we need to copy more files for flashing later!" dd if=/dev/mtd0 of=$MAINDEST/fastboot.bin > /dev/null 2>&1 dd if=/dev/mtd1 of=$MAINDEST/bootargs.bin > /dev/null 2>&1 diff --git a/plugin/lookuptable.txt b/plugin/lookuptable.txt index 2b2591a..adade20 100644 --- a/plugin/lookuptable.txt +++ b/plugin/lookuptable.txt @@ -252,6 +252,7 @@ Zgemma H9 Combo h9combo Zgemma H9 Combo /zgemma/h9combo /fullbackup_h9combo /zge Zgemma H9 Twin h9twin Zgemma H9 Twin /zgemma/h9combo /fullbackup_h9combo /zgemma rootfs.tar.bz2 uImage none Zgemma H9 Combo SE h9combose Zgemma H9 Combo SE /zgemma/h9combose /fullbackup_h9combose /zgemma rootfs.tar.bz2 uImage none Zgemma H9 Twin SE h9twinse Zgemma H9 Twin SE /zgemma/h9combose /fullbackup_h9combo /zgemma rootfs.tar.bz2 uImage none +Zgemma H9(S/2S/2H) SE h9se Zgemma H9(S/2S/2H) SE /zgemma/h9se /fullbackup_h9se /zgemma rootfs.tar.bz2 uImage none Zgemma H9.S SE h9se.s Zgemma H9.S SE /zgemma/h9se /fullbackup_h9se /zgemma rootfs.tar.bz2 uImage none Zgemma H9.2S SE h9se.2s Zgemma H9.2S SE /zgemma/h9se /fullbackup_h9se /zgemma rootfs.tar.bz2 uImage none Zgemma H9.2H SE h9se.2h Zgemma H9.2H SE /zgemma/h9se /fullbackup_h9se /zgemma rootfs.tar.bz2 uImage none