Thanks Habitual,
It still isn't working...
here's the script
/home/john/WifiSetup/ConnectWifi.sh
Code:
#!/bin/bash
ifconfig ra0 up
wpa_passphrase network "password" > /home/john/WifiSetup/wpa_supplicant.conf
wpa_supplicant -B -Dwext -i ra0 -c /home/john/WifiSetup/wpa_supplicant.conf
dhcpcd ra0
echo " run on $(date)" >> /home/john/WifiSetup/log.txt
Here's my /etc/rc.local
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Connect To Wifi John 22Apr11
sh /home/john/WifiSetup/ConnectWifi.sh
# End Connect to wifi
exit 0
I put the echo date command into the script, so I could see when it runs. It is not running automatically.
but it works if I type
Code:
sudo sh /home/john/WifiSetup/ConnectWifi.sh
Thank you for your help.
Bookmarks