I got it Type vi /etc/init.d/mystartup.sh In your new file enter #!/bin/sh ifconfig wlan0 down iwconfig wlan0 mode ad-hoc iwconfig wlan0 essid 'test' iwconfig wlan0 key 1234567890 ifconfig wlan0 up ifconfig wlan0 192.168.1.2 Type chmod +x /etc/init.d/mystartup.sh update-rc.d mystartup.sh defaults 10...