From 7de6c1179b895aac1f26b81173e64bff421d8b5f Mon Sep 17 00:00:00 2001 From: James Rayner Date: Fri, 30 May 2008 23:39:13 +1000 Subject: separate automagic from netcfg proper --- src/net-profiles | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/net-profiles b/src/net-profiles index d9cc4da..67ab5e8 100755 --- a/src/net-profiles +++ b/src/net-profiles @@ -33,14 +33,8 @@ case "$1" in menu) # Pull up menu of networks /usr/bin/netcfg-menu $NETWORKS_MENU_TIMEOUT ;; - auto-*) # Automatic configuration, store type and get interface next - auto=$network - ;; *) # Either interface or profile - if [[ "$auto" ]]; then # Auto set, so interface - /usr/bin/netcfg-$auto $network - unset auto - elif [ "$network" = "${network#!}" ]; then # otherwise profile + if [ "$network" = "${network#!}" ]; then # otherwise profile /usr/bin/netcfg2 -c $network fi ;; -- cgit v1.2.3-24-g4f1b