From f9e48c9f78777e9781faad21804989b24dda13a3 Mon Sep 17 00:00:00 2001 From: max_10 Date: Tue, 8 Aug 2017 14:14:54 +0200 Subject: [PATCH] rename HOST to BOXTYPE --- atevio7500/scripts/flash_part_w_fw.sh | 4 ++-- hs7810a/scripts/flash_part_w_fw.sh | 2 +- nor_flash/scripts/flash_part_w_fw.sh | 32 +++++++++++++-------------- nor_flash/scripts/prepare_root.sh | 6 ++--- spark/scripts/flash_part_w_fw.sh | 6 ++--- tf7700/tf7700.sh | 6 ++--- ufs912/scripts/flash_part_w_fw.sh | 6 ++--- ufs913/scripts/flash_part_w_fw.sh | 6 ++--- 8 files changed, 34 insertions(+), 34 deletions(-) diff --git a/atevio7500/scripts/flash_part_w_fw.sh b/atevio7500/scripts/flash_part_w_fw.sh index 0d9eb90..58f5e78 100755 --- a/atevio7500/scripts/flash_part_w_fw.sh +++ b/atevio7500/scripts/flash_part_w_fw.sh @@ -21,12 +21,12 @@ SUMTOOL=$TUFSBOXDIR/host/bin/sumtool PAD=$TUFSBOXDIR/host/bin/pad FUP=$TUFSBOXDIR/host/bin/fup -HOST=`cat $TMPEXTDIR/etc/hostname` +BOXTYPE=`cat $TMPEXTDIR/etc/hostname` . $CURDIR/../common/gitversion.sh $CURDIR OUTFILE=$OUTDIR/update_w_fw.ird -OUTFILE_Z=$OUTDIR/$HOST$gitversion +OUTFILE_Z=$OUTDIR/$BOXTYPE$gitversion if [ ! -e $OUTDIR ]; then mkdir $OUTDIR diff --git a/hs7810a/scripts/flash_part_w_fw.sh b/hs7810a/scripts/flash_part_w_fw.sh index b219cbe..b6eba09 100755 --- a/hs7810a/scripts/flash_part_w_fw.sh +++ b/hs7810a/scripts/flash_part_w_fw.sh @@ -22,7 +22,7 @@ FUP=$TUFSBOXDIR/host/bin/fup . $CURDIR/../common/gitversion.sh $CURDIR OUTFILE=$OUTDIR/update_w_fw.ird -OUTFILE_Z=$OUTDIR/$HOST$gitversion +OUTFILE_Z=$OUTDIR/$BOXTYPE$gitversion if [ ! -e $OUTDIR ]; then mkdir $OUTDIR diff --git a/nor_flash/scripts/flash_part_w_fw.sh b/nor_flash/scripts/flash_part_w_fw.sh index 68df0cf..c70fd48 100755 --- a/nor_flash/scripts/flash_part_w_fw.sh +++ b/nor_flash/scripts/flash_part_w_fw.sh @@ -20,15 +20,15 @@ SUMTOOL=$TUFSBOXDIR/host/bin/sumtool PAD=$TUFSBOXDIR/host/bin/pad if [ -f $TMPROOTDIR/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/etc/hostname` elif [ -f $TMPVARDIR/etc/hostname ]; then - HOST=`cat $TMPVARDIR/etc/hostname` + BOXTYPE=`cat $TMPVARDIR/etc/hostname` fi . $CURDIR/../common/gitversion.sh $CURDIR OUTFILE=$OUTDIR/miniFLASH.img -OUTFILE_Z=$OUTDIR/$HOST$gitversion +OUTFILE_Z=$OUTDIR/$BOXTYPE$gitversion if [ ! -e $OUTDIR ]; then mkdir $OUTDIR @@ -40,32 +40,32 @@ if [ -e $OUTFILE ]; then fi # Definition size of kernel, root, var and erase size -case "$HOST" in - ufs910) echo "Creating flash image for $HOST..." +case "$BOXTYPE" in + ufs910) echo "Creating flash image for $BOXTYPE..." SIZE_KERNEL=0x190000 SIZE_ROOT=0xB40000 SIZE_VAR=0x2F0000 ERASE_SIZE=0x10000 ;; - ufs922) echo "Creating flash image for $HOST..." + ufs922) echo "Creating flash image for $BOXTYPE..." SIZE_KERNEL=0x1A0000 SIZE_ROOT=0xB40000 SIZE_VAR=0x2E0000 ERASE_SIZE=0x10000 ;; - fortis_hdbox) echo "Creating flash image for $HOST..." + fortis_hdbox) echo "Creating flash image for $BOXTYPE..." SIZE_KERNEL=0x200000 SIZE_ROOT=0xC00000 SIZE_VAR=0x11C0000 ERASE_SIZE=0x20000 ;; - octagon1008) echo "Creating flash image for $HOST..." + octagon1008) echo "Creating flash image for $BOXTYPE..." SIZE_KERNEL=0x200000 SIZE_ROOT=0xC00000 SIZE_VAR=0x11C0000 ERASE_SIZE=0x20000 ;; - cuberevo_mini2) echo "Creating flash image for $HOST..." + cuberevo_mini2) echo "Creating flash image for $BOXTYPE..." SIZE_KERNEL=0x220000 SIZE_ROOT=0x1380000 SIZE_VAR=0xA00000 @@ -75,7 +75,7 @@ case "$HOST" in OUTFILE_OU=$OUTDIR/mtd234.img OUTFILE=$OUTDIR/usb_update.img ;; - cuberevo) echo "Creating flash image for $HOST..." + cuberevo) echo "Creating flash image for $BOXTYPE..." SIZE_KERNEL=0x220000 SIZE_ROOT=0x1380000 SIZE_VAR=0xA00000 @@ -85,7 +85,7 @@ case "$HOST" in OUTFILE_OU=$OUTDIR/mtd234.img OUTFILE=$OUTDIR/usb_update.img ;; - cuberevo_2000hd) echo "Creating flash image for $HOST..." + cuberevo_2000hd) echo "Creating flash image for $BOXTYPE..." SIZE_KERNEL=0x220000 SIZE_ROOT=0x1380000 SIZE_VAR=0xA00000 @@ -95,7 +95,7 @@ case "$HOST" in OUTFILE_OU=$OUTDIR/mtd234.img OUTFILE=$OUTDIR/usb_update.img ;; - cuberevo_3000hd) echo "Creating flash image for $HOST..." + cuberevo_3000hd) echo "Creating flash image for $BOXTYPE..." SIZE_KERNEL=0x220000 SIZE_ROOT=0x1380000 SIZE_VAR=0xA00000 @@ -105,7 +105,7 @@ case "$HOST" in OUTFILE_OU=$OUTDIR/mtd234.img OUTFILE=$OUTDIR/usb_update.img ;; - *) echo "Creating flash image for <$HOST -> ufs910>..." + *) echo "Creating flash image for <$BOXTYPE -> ufs910>..." SIZE_KERNEL=0x190000 SIZE_ROOT=0xB40000 SIZE_VAR=0x2F0000 @@ -135,7 +135,7 @@ $PAD $SIZE_VAR $CURDIR/mtd_var.sum.bin $CURDIR/mtd_var.sum.pad.bin # --- update.img --- #Merge all parts together -if [ "$HOST" == "cuberevo_mini2" -o "$HOST" == "cuberevo" -o "$HOST" == "cuberevo_2000hd" -o "$HOST" == "cuberevo_3000hd" ]; then +if [ "$BOXTYPE" == "cuberevo_mini2" -o "$BOXTYPE" == "cuberevo" -o "$BOXTYPE" == "cuberevo_2000hd" -o "$BOXTYPE" == "cuberevo_3000hd" ]; then cat $CURDIR/mtd_kernel.pad.bin >> $OUTDIR/out_tmp.img cat $CURDIR/mtd_root.pad.bin >> $OUTDIR/out_tmp.img cat $CURDIR/mtd_var.sum.pad.bin >> $OUTDIR/out_tmp.img @@ -152,7 +152,7 @@ else fi echo "-----------------------------------------------------------------------" -echo "flash size results for : $HOST" +echo "flash size results for : $BOXTYPE" SIZE=`stat uImage -t --format %s` SIZE=`printf "0x%X" $SIZE` echo -e "\e[32mKernel = $SIZE Maximum= $SIZE_KERNEL\e[0m" @@ -196,7 +196,7 @@ rm -f $CURDIR/mtd_root.pad.bin rm -f $CURDIR/mtd_var.sum.pad.bin md5sum -b $OUTFILE | awk -F' ' '{print $1}' > $OUTFILE.md5 -if [ "$HOST" == "cuberevo_mini2" -o "$HOST" == "cuberevo" -o "$HOST" == "cuberevo_2000hd" -o "$HOST" == "cuberevo_3000hd" ]; then +if [ "$BOXTYPE" == "cuberevo_mini2" -o "$BOXTYPE" == "cuberevo" -o "$BOXTYPE" == "cuberevo_2000hd" -o "$BOXTYPE" == "cuberevo_3000hd" ]; then zip -j $OUTFILE_Z.zip $OUTFILE $OUTFILE.md5 $OUTFILE_OU $OUTFILE_OU.md5 rm -f $OUTFILE_OU rm -f $OUTFILE_OU.md5 diff --git a/nor_flash/scripts/prepare_root.sh b/nor_flash/scripts/prepare_root.sh index e4e8513..c24a42d 100755 --- a/nor_flash/scripts/prepare_root.sh +++ b/nor_flash/scripts/prepare_root.sh @@ -26,9 +26,9 @@ rm -fr $TMPROOTDIR/boot mv $TMPROOTDIR/var/* $TMPSTORAGEDIR/ if [ -f $TMPROOTDIR/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/etc/hostname` elif [ -f $TMPSTORAGEDIR/etc/hostname ]; then - HOST=`cat $TMPSTORAGEDIR/etc/hostname` + BOXTYPE=`cat $TMPSTORAGEDIR/etc/hostname` fi # mini-rcS and inittab @@ -36,7 +36,7 @@ rm -f $TMPROOTDIR/etc mkdir -p $TMPROOTDIR/etc/init.d echo "#!/bin/sh" > $TMPROOTDIR/etc/init.d/rcS echo "mount -n -t proc proc /proc" >> $TMPROOTDIR/etc/init.d/rcS -if [ "$HOST" == "cuberevo_mini2" -o "$HOST" == "cuberevo" -o "$HOST" == "cuberevo_2000hd" -o "$HOST" == "cuberevo_3000hd" ]; then +if [ "$BOXTYPE" == "cuberevo_mini2" -o "$BOXTYPE" == "cuberevo" -o "$BOXTYPE" == "cuberevo_2000hd" -o "$BOXTYPE" == "cuberevo_3000hd" ]; then echo "mount -t jffs2 -o rw,noatime,nodiratime /dev/mtdblock4 /var" >> $TMPROOTDIR/etc/init.d/rcS else echo "mount -n -t jffs2 -o rw,noatime,nodiratime /dev/mtdblock3 /var" >> $TMPROOTDIR/etc/init.d/rcS diff --git a/spark/scripts/flash_part_w_fw.sh b/spark/scripts/flash_part_w_fw.sh index 571ff03..4db08bd 100755 --- a/spark/scripts/flash_part_w_fw.sh +++ b/spark/scripts/flash_part_w_fw.sh @@ -18,14 +18,14 @@ SUMTOOL=$TUFSBOXDIR/host/bin/sumtool PAD=$TUFSBOXDIR/host/bin/pad if [ -f $TMPROOTDIR/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/etc/hostname` elif [ -f $TMPROOTDIR/var/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/var/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/var/etc/hostname` fi . $CURDIR/../common/gitversion.sh $CURDIR -OUTFILE=$OUTDIR/$HOST$gitversion +OUTFILE=$OUTDIR/$BOXTYPE$gitversion if [ ! -e $OUTDIR ]; then mkdir $OUTDIR diff --git a/tf7700/tf7700.sh b/tf7700/tf7700.sh index c60c602..3b88857 100755 --- a/tf7700/tf7700.sh +++ b/tf7700/tf7700.sh @@ -48,14 +48,14 @@ if [ ! -e $TMPROOTDIR/dev/mtd0 ]; then fi if [ -f $TMPROOTDIR/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/etc/hostname` elif [ -f $TMPROOTDIR/var/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/var/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/var/etc/hostname` fi . $CURDIR/../common/gitversion.sh $CURDIR -OUTFILE=$OUTDIR/$HOST$gitversion +OUTFILE=$OUTDIR/$BOXTYPE$gitversion TFINSTALLERDIR=$BASEDIR/tfinstaller diff --git a/ufs912/scripts/flash_part_w_fw.sh b/ufs912/scripts/flash_part_w_fw.sh index 50b94bd..95ff7f5 100755 --- a/ufs912/scripts/flash_part_w_fw.sh +++ b/ufs912/scripts/flash_part_w_fw.sh @@ -20,15 +20,15 @@ SUMTOOL=$TUFSBOXDIR/host/bin/sumtool MUP=$TUFSBOXDIR/host/bin/mup if [ -f $TMPROOTDIR/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/etc/hostname` elif [ -f $TMPROOTDIR/var/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/var/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/var/etc/hostname` fi . $CURDIR/../common/gitversion.sh $CURDIR OUTFILE=$OUTDIR/update_w_fw.img -OUTFILE_Z=$OUTDIR/$HOST$gitversion +OUTFILE_Z=$OUTDIR/$BOXTYPE$gitversion if [ ! -e $OUTDIR ]; then mkdir $OUTDIR diff --git a/ufs913/scripts/flash_part_w_fw.sh b/ufs913/scripts/flash_part_w_fw.sh index aa0e670..76fa525 100755 --- a/ufs913/scripts/flash_part_w_fw.sh +++ b/ufs913/scripts/flash_part_w_fw.sh @@ -19,14 +19,14 @@ SUMTOOL=$TUFSBOXDIR/host/bin/sumtool MUP=$TUFSBOXDIR/host/bin/mup if [ -f $TMPROOTDIR/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/etc/hostname` elif [ -f $TMPROOTDIR/var/etc/hostname ]; then - HOST=`cat $TMPROOTDIR/var/etc/hostname` + BOXTYPE=`cat $TMPROOTDIR/var/etc/hostname` fi . $CURDIR/../common/gitversion.sh $CURDIR -OUTFILE=$OUTDIR/$HOST$gitversion +OUTFILE=$OUTDIR/$BOXTYPE$gitversion if [ ! -e $OUTDIR ]; then mkdir $OUTDIR