Skip to content

Instantly share code, notes, and snippets.

@justsh
Created March 16, 2015 09:24
Show Gist options
  • Save justsh/8412a69cb377dfd94be6 to your computer and use it in GitHub Desktop.
Save justsh/8412a69cb377dfd94be6 to your computer and use it in GitHub Desktop.
basic upstart script for wpa_supplicant. tested with edimax usb wifi adapter on rpi2
#!upstart
description "automatically start wpa_supplicant daemon"
start on runlevel [2345]
stop on runlevel [016]
respawn
respawn limit 20 5
expect fork
script
exec /sbin/wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment