Skip to content

Instantly share code, notes, and snippets.

@AdamMagaluk
Created March 21, 2013 00:30
Show Gist options
  • Save AdamMagaluk/5209768 to your computer and use it in GitHub Desktop.
Save AdamMagaluk/5209768 to your computer and use it in GitHub Desktop.
#!/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
#!/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