|
|
|
|
Bash script (Linux) to automatically decrypt the original firmware (OF) from iriver for dual-booting.
Be sure to change the two variables :
#!/bin/bash
h10=/media/H10
fw_orig=H10_Original.mi4
cd /tmp
mkdir mi4code
cd mi4code
wget http://daniel.haxx.se/sansa/mi4code.c
gcc -o mi4code mi4code.c -lgcrypt
iriver_fw=`grep -i rockbox $h10/System/$fw_orig`
if [[ "$iriver_fw" != "" ]]; then
echo "FAILED - File $h10/System/$fw_orig is present but"
echo "it is not orignal Iriver firmware!"
echo "Please be sure that $h10/System/$fw_orig"
echo "is the original (crypted) firmware"
exit
else
./mi4code decrypt -s $h10/System/$fw_orig $h10/System/OF.bin
fi
r1 - 17 Feb 2007 - 17:54:37 - NicolasBigaouette?
Copyright © by the contributing authors.
|