summaryrefslogtreecommitdiffstats
path: root/src/net-profiles
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2007-12-25 21:32:43 +0100
committerJames Rayner <james@archlinux.org>2007-12-25 21:32:43 +0100
commit2fc0a5d9baae63773cf7675b60459a85063279d5 (patch)
tree914f444b626a1a46d7d6ba162d4d001fd71b5016 /src/net-profiles
parentf18ab0e80b2e48090408dd33071ed98a4ae6356b (diff)
downloadnetctl-2fc0a5d9baae63773cf7675b60459a85063279d5.tar.gz
netctl-2fc0a5d9baae63773cf7675b60459a85063279d5.tar.xz
added auto wireless support to rc.d/net-profiles
Diffstat (limited to 'src/net-profiles')
-rwxr-xr-xsrc/net-profiles4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net-profiles b/src/net-profiles
index 0047fa7..9967b6e 100755
--- a/src/net-profiles
+++ b/src/net-profiles
@@ -24,6 +24,10 @@ case "$1" in
/usr/bin/netcfg-menu 5
elif [ "$NET" ]; then
/usr/bin/netcfg2 $NET
+ elif [ "${NETWORKS[0]}" = "auto" ]; then
+ if [ "${NETWORKS[1]}" ]; then
+ /usr/bin/netcfg-wireless-auto ${NETWORKS[1]}
+ fi
elif [ "$NETWORKS" ]; then
for prof in ${NETWORKS[@]}; do
if [ "$prof" = "${prof#!}" ]; then