diff options
Diffstat (limited to 'package/utils/admswconfig/files/admswswitch.sh')
-rw-r--r-- | package/utils/admswconfig/files/admswswitch.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/package/utils/admswconfig/files/admswswitch.sh b/package/utils/admswconfig/files/admswswitch.sh deleted file mode 100644 index 3b8aabf34d..0000000000 --- a/package/utils/admswconfig/files/admswswitch.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# Copyright (C) 2006 OpenWrt.org - -setup_switch_vlan() { - config_get ports "$CONFIG_SECTION" "eth$1" - ports=`echo "$ports"| sed s/" "/""/g` - ip link set dev eth$1 down - admswconfig eth$1 ${ports}c - ip link set dev eth$1 up -} - -setup_switch() { - config_cb() { - case "$1" in - switch) - option_cb() { - case "$1" in - eth*) setup_switch_vlan "${1##eth}";; - esac - } - ;; - *) - option_cb() { return 0; } - ;; - esac - } - config_load network -} |