Quote:
Originally Posted by boriar
 Bad luck!
I don't know what's happend with the two scripts. I see the new screen with the arrow and next the normal screen but when I touch any option ¡zas! screen inverted
For all people who want to aid tshering, please check this scripts and post here what's happened, firmware and device.
From main menu:
tools>nickel_diverse.msh>db_chk_integrity.sh
tools>back_up_and_restore>back_up>back_up_db.sh
For me: Both flip screen, FW 3.12.1, Aura H2O
PS: tshring, I hope you don't blame me for ask for help.
|
No problem! I am always thankful for getting help. To make it easier I post here the code (fragments) that should be of relevance.
pngshow is the executable provided by Frostschutz.
Spoiler:
Code:
### this part from adds/kbmenu/helpers/backup_helper.sh
[ "$showanimation" == "true" ] && $ksmroot/scripts_intern/div/on-animator.sh &
[ ! -e $backupdir ] && mkdir -p $backupdir
[ "$addtimestamp" == "true" ] && targetfilebasename="${targetfilebasename}_$timestamp"
if [ "$gzipmode" == "true" ]; then
targetfilebasename="${targetfilebasename}.gz"
cd $sourcedir
gzip -c "$sourcefilename" > "$backupdir/$targetfilebasename" 2>&1
exit_status=$?
if [ $exit_status -ne 0 ]; then
response=$(echo "gzip error: exit code $exit_status")
else
response=$(echo "extracted $selectedoption to $targetfile" )
fi
else
response=$(cp "$sourcedir/$sourcefilename" "$backupdir/$targetfilebasename" 2>&1)
fi
###
if [ "$showanimation" == "true" ]; then
killall on-animator.sh
fi
Next comes: $ksmroot/scripts_intern/div/on-animator.sh
Code:
#!/bin/sh
ksmroot=${ksmroot:-"/adds/kbmenu"}
busyimagesbasename=${busyimagesbasename:-"arrow"}
[ -e "${ksmroot}/images/${busyimagesbasename}0.png" ] || exit
i=0;
while true; do
if [ -e "${ksmroot}/images/${busyimagesbasename}${i}.png" ]; then
$ksmroot/tools/pngshow "${ksmroot}/images/${busyimagesbasename}${i}.png"
let ++i
usleep 250000
else
i=0
fi
done