I decided to make a script that enables older firmware...
How it's looking?
Code: Select all
#I planned thet to detecting partition that needed to enable, used to sense PartitionSwithch file....
if [ -f /mtd_rwarea/PartitionSwitch_1_0 ]
then
mkdir /dtv/test
mount -t auto /dev/tbml8 /dtv/test
#OLDVERS = T-CHL7DEUC-2004.1
OLDVERS=$(/bin/busybox egrep -e 'T-CHL7DEUC-[0-9][0-9][0-9][0-9].[0-9]' /dtv/test/exeDSP)
#OLDVERS=2004
OLDVERS=$(echo $OLDVERS | sed s/.*-//g | sed 's/\..*//g')
echo $(sed 's/_00[0-9][0-9][0-9][0-9]_/_00'$OLDVERS'_/g' Version.1) > Version.0
else
mkdir /dtv/test
mount -t auto /dev/tbml10 /dtv/test
#OLDVERS = T-CHL7DEUC-2004.1
OLDVERS=$(/bin/busybox egrep -e 'T-CHL7DEUC-[0-9][0-9][0-9][0-9].[0-9]' /dtv/test/exeDSP)
#OLDVERS=2004
OLDVERS=$(echo $OLDVERS | sed s/.*-//g | sed 's/\..*//g')
echo $(sed 's/_00[0-9][0-9][0-9][0-9]_/_00'$OLDVERS'_/g' Version.0) > Version.1
fi