Author Topic: Can't extract_firmware  (Read 8229 times)

Offline carson512

  • New
  • *
  • Posts: 1
Can't extract_firmware
« 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?



Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5229
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Can't extract_firmware
« Reply #1 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.
Software Engineer. Bitsum LLC.

Offline kitkat

  • New
  • *
  • Posts: 1
Re: Can't extract_firmware
« Reply #2 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

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5229
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Can't extract_firmware
« Reply #3 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.
Software Engineer. Bitsum LLC.