updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / wpa_auto / wpa_auto_action
blob9e45dab4714848ee6eaeb4f381fd55f8694f368d
1 #!/bin/bash
3 if [[ -f /etc/wpa_auto.conf ]]; then
4 . /etc/wpa_auto.conf
5 else
6 exit 1
7 fi
9 if [[ $2 = "CONNECTED" ]]; then
10 [[ -f /run/dhcpcd-$1.pid ]] && /sbin/dhcpcd -qx $1
11 /sbin/dhcpcd -q $DHCPCD_OPTIONS $1
12 elif [[ $2 = "DISCONNECTED" ]]; then
13 /sbin/dhcpcd -qx $1
16 exit 0