From 796420d4282fc8765dd6d0b0cc11507482ef5d35 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 27 Feb 2007 23:09:57 +0000 Subject: move config_get_bool from /sbin/wifi to /etc/functions.sh git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6407 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/sbin/wifi | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'package/base-files/files/sbin/wifi') diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index 272aa16fa..2b4f1ce1c 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -78,17 +78,6 @@ start_net() {( setup_interface "$1" "$2" )} -config_get_bool() { - local _tmp - config_get "$1" "$2" "$3" - eval "_tmp=\$$1" - case "$_tmp" in - 1|on|enabled) eval "$1=1";; - 0|off|disabled) eval "$1=0";; - *) eval "$1=${4:-0}";; - esac -} - config_cb() { config_get TYPE "$CONFIG_SECTION" TYPE case "$TYPE" in -- cgit v1.2.3