Results 1 to 7 of 7

Thread: /system/bin/bootkali: syntax error: 'if' unmached <--- why?

  1. #1

    /system/bin/bootkali: syntax error: 'if' unmached <--- why?[SOLVED]

    hello i just installed nethunter last night on a nexus 10..
    i notice that none of the tools really is working... and i get this error on the topic everytime i try to run someone... kali tools open a terminal and that pops up and nothing happens..
    any ideas?

    thanks for the help in advance!
    Last edited by rek2wilds; 2015-08-15 at 23:25.

  2. #2
    I installed adb
    edited the file with vi
    and notice that is missing some lines.. at least a FI ending the IF block
    I have re-mounted system rw but when I safe and run again is missing again.. ***...
    any ideas?

  3. #3
    according to the source code in github my install seens that this particular file is corrupted.. is all ok in the repo https://github.com/offensive-securit...m/bin/bootkali

  4. #4
    ok I fix it...
    remounted in rw /system
    got a copy from the github original bootkali file into my local computer
    then I push it to the system/bin notice it was full (prob this is why i have having issues in the first place..
    so I empty some of it and made space
    first push to a writable place
    adb push bootkali /sdcard/bootkali

    then
    adb shell
    su -
    mount -o rw,remount /system
    cd /system/bin
    mv bootkali bootkali.bk
    cp /sdcard/bootkali .
    reboot

  5. #5
    Join Date
    2015-Aug
    Posts
    10
    Hi,
    Would you please be able to provide a more detailed outline of the steps to fix this issue. I have the same thing on my Nexus 10, Nethunter and all the Android apps work fine but cannot get Kali to boot. There were quite a few differences between screen shots on the install to what actually happened, which I put down to being on lollipop, One major thing i noticed was on the explorer screen grab showed the TWRP folder on the internal storage, mine didn't.

    Thanks in advance

  6. #6
    Join Date
    2015-Aug
    Posts
    10
    Fixed the issue by following the instructions in another thread. Issue seemed to be caused by device not seeing free space available.

    https://forums.kali.org/showthread.p...ed-on-Nexus-10

  7. #7
    Same problem with my nexus 7 2012. Tried the fix for nexus 10 but didnt work for my nexus 7. Gives me an error when trying to flash the resize program.

Similar Threads

  1. Replies: 0
    Last Post: 2021-12-20, 21:35
  2. THC Hydra syntax question:
    By Saddiq in forum General Archive
    Replies: 0
    Last Post: 2016-01-22, 20:15
  3. Locate syntax error
    By cmdmss in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2015-03-29, 20:49
  4. Modifying bootkali
    By securemaryland in forum NetHunter Development
    Replies: 1
    Last Post: 2015-02-25, 00:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •