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:
parent
7904b46340
commit
b942511811
@ -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
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user