Bitsum Community Forum

General Category => Firmware Modification Kit and Embedded Systems => Topic started by: carson512 on January 09, 2011, 10:23:09 PM

Title: Can't extract_firmware
Post by: carson512 on January 09, 2011, 10:23:09 PM
tl-wr841nd-webflash 15940.bin

Firmware Mod Kit (extract) v0.65 beta, (c)2010 Jeremy Collake
http://www.bitsum.com
./extract_firmware.sh: 114: Syntax error: "else" unexpected

Why this?
Title: Re: Can't extract_firmware
Post by: Jeremy Collake on January 12, 2011, 04:12:22 AM
My guess is that your platform is incompatible. Use a different OS to run the Firmware Mod Kit, then *maybe* it will work for you. Ubuntu is tested and known to work fine, so long as the proper packages are installed. Of course, not all firmware images are supported either. Sometimes people add support, but strangely nobody ever 'gives back' and submits patches -- they just leave it up to me to do everything. Typical I guess, and I am acting abnormally offering up stuff for free.
Title: Re: Can't extract_firmware
Post by: kitkat on January 15, 2011, 01:58:07 AM
Just add dummy echo between "then" and "else" on line 114 in "extract_firmware.sh" script:

if [ $? != 0 ]; then
                                #echo " WARNING: Not recognized by splitter3";
                                # exit 1
add this ===>        echo ""
                        else
Title: Re: Can't extract_firmware
Post by: Jeremy Collake on January 15, 2011, 02:04:17 AM
Ah, so some shells apparently disallow empty if clauses. I will fix internally.

I had a user add support for the new squashfs-lzma variant used by opener (simple), but he didn't bother submitting a patch. That kind of stuff upsets me. I guess not everyone gives a rats ass about anyone else. I will add this too whenever I get time.