Skip to content

Commit

Permalink
Fix indentification for new Zgemma models
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitrij <Dima-73@inbox.lv>
Co-authored-by: Harro Verton <wanwizard@openpli.org>
  • Loading branch information
3 people committed Sep 29, 2021
1 parent 649be80 commit 90665c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions plugin/backupsuite.sh
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions plugin/lookuptable.txt
Expand Up @@ -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
Expand Down

0 comments on commit 90665c3

Please sign in to comment.