Hi,
I made a script in order to connect to my wireless network as follow
Code:
#!/bin/bash
ifconfig wlan0 up
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
dhclient -4 -nw wlan0
and this script works fine when I execute it on terminal
but I want to make it run at startup.
What I have done so far were:
copy to /etc/init.d/script.sh
run the command
Quote:
update-rc.d script.sh defaults
|
and edit 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.
script.sh
exit 0
but I have no success so far.
my distro is Ubuntu 64bits 13.04
thanks,
abarone77