From: jow Date: Thu, 31 Jan 2013 12:47:50 +0000 (+0000) Subject: wifitoggle: don't assume option disabled to be present (#9750) X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;h=b942511811ad02cab36c5465dfb80d425af0a8ac;p=packages.git 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 --- diff --git a/utils/wifitoggle/Makefile b/utils/wifitoggle/Makefile index abf0fc865..b3154b69d 100644 --- a/utils/wifitoggle/Makefile +++ b/utils/wifitoggle/Makefile @@ -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 diff --git a/utils/wifitoggle/files/wifitoggle.hotplug b/utils/wifitoggle/files/wifitoggle.hotplug index fdeeb742f..174693ece 100755 --- a/utils/wifitoggle/files/wifitoggle.hotplug +++ b/utils/wifitoggle/files/wifitoggle.hotplug @@ -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 } }