View Single Post
Posts: 309 | Thanked: 115 times | Joined on May 2010 @ Malaysia
#597
if i type "chmod +x insneomod.sh" , i got no such file or directory...

if i type "chmod +x /home/user/MyDocs/insneomod.sh", i got nothing..i think its executable already..

however,when i type "sh /home/user/MyDocs/insneomod.sh" , i got :line 25: syntax error : end of file unexpected (expecting "fi")

what seems to be the problem?

this is my script..i change your "opt/neopwn/" to "/mydocs/neo/" for where the modules are located..

Code:
#!/bin/sh
if test -f /var/run/inject.pid
then echo "Injection is already enabled ;)"
exit 0
fi
if iwconfig wlan0|grep "Access Point: Not-Associated">/dev/null
then true
else echo "Disconnect from wifi first :p"
exit 1
fi
ifconfig wlan0 down
rmmod wl12xx
rmmod mac80211
rmmod cfg80211
cd /home/user/MyDocs/neo/
insmod compat.ko
insmod rfkill_backport.ko
insmod cfg80211.ko
insmod mac80211.ko
insmod wl1251.ko
insmod wl1251_spi.ko
iwconfig wlan0 mode monitor
ifconfig wlan0 up
echo $$ > /var/run/inject.pid
echo "Injection is enabled ;)"

Last edited by one1002; 2010-10-29 at 15:56.