wifitoggle: don't assume option disabled to be present (#9750)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@35415 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2013-01-31 12:47:50 +00:00
parent 7904b46340
commit b942511811
2 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2010-2012 OpenWrt.org
# Copyright (C) 2010-2013 OpenWrt.org
# Copyright (C) 2010 segal.di.ubi.pt
#
# This is free software, licensed under the GNU General Public License v2.
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=wifitoggle
PKG_VERSION:=1
PKG_RELEASE:=2
PKG_RELEASE:=3
include $(INCLUDE_DIR)/package.mk

View File

@ -157,11 +157,8 @@ load_wifitoggle() {
if [ "$disabled" = "1" ]
then
enable $1
elif [ "$disabled" = "0" ]
then
disable
else
logger -p user.err -t "wifitoggle" "device($device) not recognized"
disable
fi
}
}