#!/bin/sh # Make sure you have the root power to execute this command iwconfig wlan0 mode Ad-Hoc iwconfig wlan0 essid bigbirdgumstix killall dhcpcd ifconfig wlan0 192.168.3.31 netmask 255.255.255.0 up #sleep 1 iwconfig wlan0 mode Managed iwconfig wlan0 essid "Dartmouth Registered" dhcpcd wlan0 #sleep 1 ping -c 3 tahoe.cs.dartmouth.edu