repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git]
/
wpa_auto
/
wpa_auto_action
blob
9e45dab4714848ee6eaeb4f381fd55f8694f368d
1
#!/bin/bash
2
3
if
[[
-f
/
etc
/
wpa_auto.conf
]];
then
4
.
/
etc
/
wpa_auto.conf
5
else
6
exit
1
7
fi
8
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
14
fi
15
16
exit
0
17