Created
March 21, 2013 00:30
-
-
Save AdamMagaluk/5209768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DRONE_SSID="ardone_adam" | |
killall udhcpc | |
udhcpd /tmp/udhcpd.conf | |
ifconfig ath0 down | |
iwconfig ath0 mode Ad-Hoc essid $DRONE_SSID channel auto commit | |
ifconfig ath0 192.168.1.1 netmask 255.255.255.0 up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
INFRA_ESSID="ardrone" | |
killall udhcpd | |
ifconfig ath0 down | |
iwconfig ath0 mode managed essid $INFRA_ESSID ap any channel auto commit | |
ifconfig ath0 up | |
udhcpc -b -i ath0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment