lostngone Posted December 1, 2011 Share Posted December 1, 2011 I am running on Ubuntu 11.10 and when I try and run the wp3.sh I get "[[: not found" after each line if I enter a value or not. I do not see this behavior under BT but due to hardware incompatibilities(or my stupidity) I am having difficulties with that distro at the moment. lostngone@lostngone-MacBookPro:~$ sudo ./wp3.sh Input Pineapple Netmask [or ENTER for 255.255.255.0]: ./wp3.sh: 8: [[: not found Input Pineapple Network [or ENTER for 172.16.42.0/24]: ./wp3.sh: 14: [[: not found Input Interface between PC and Pineapple [or ENTER for eth0]: ./wp3.sh: 20: [[: not found Any ideas? Quote Link to comment Share on other sites More sharing options...
lostngone Posted December 2, 2011 Author Share Posted December 2, 2011 Okay a colleague at the office figured this one out... Ubuntu links /bin/sh to dash not bash. I did do "ps -p $$" and "echo $0" and they both reported bash so I thought I was good. After I fixed that I did not get that error. Quote Link to comment Share on other sites More sharing options...
allisonmagic Posted December 6, 2011 Share Posted December 6, 2011 (edited) Okay a colleague at the office figured this one out... Ubuntu links /bin/sh to dash not bash. I did do "ps -p $$" and "echo $0" and they both reported bash so I thought I was good. After I fixed that I did not get that error. im having the same issue, can you elaborate on this for me ? how exactly did you fix this error in the script ? nevermind.. fixed it Edited December 6, 2011 by allisonmagic Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted December 7, 2011 Share Posted December 7, 2011 Change the first line from #!/bin/sh to #!/bin/bash I believe. Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted December 7, 2011 Share Posted December 7, 2011 (edited) Change the first line from #!/bin/sh to #!/bin/bash I believe. Yup that did the trick, Just got my AP51 flashed and tested it out. Now to troubleshoot why my iPod touch will not fully associate with the AP of "Proto's Pineapple - FAKE" Edited December 7, 2011 by Mr-Protocol Quote Link to comment Share on other sites More sharing options...
allisonmagic Posted December 7, 2011 Share Posted December 7, 2011 (edited) all i did was mv /bin/sh to /home/ , ran wp3, then moved the /home/sh back to /bin but removing all the #!/bin/sh and whatever commented line out of there does the trick too. just use strait commands and dont tell it to pick a shell Edited December 7, 2011 by allisonmagic Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted December 8, 2011 Share Posted December 8, 2011 all i did was mv /bin/sh to /home/ , ran wp3, then moved the /home/sh back to /bin but removing all the #!/bin/sh and whatever commented line out of there does the trick too. just use strait commands and dont tell it to pick a shell I was about to say, you should NEVER move that file. Ever. Changing that upper part of the script will do just fine.. Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted December 8, 2011 Share Posted December 8, 2011 (edited) Just a side note, the "Hash bang" (#!) is not a comment. As Darren stated, just change it to #!/bin/bash and it will work. Edited December 8, 2011 by Mr-Protocol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.