aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/functions
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-07-14 10:25:49 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-07-14 10:25:49 +0000
commit59f759b8a51b359da13d0b145d8c98639a6824da (patch)
tree7a799c4402e7d961242d3162f5d52eaaebd52b13 /package/base-files/files/lib/functions
parent7cd8da5c84da6ebcc1348a372c80d14472327e4f (diff)
downloadmaster-187ad058-59f759b8a51b359da13d0b145d8c98639a6824da.tar.gz
master-187ad058-59f759b8a51b359da13d0b145d8c98639a6824da.tar.bz2
master-187ad058-59f759b8a51b359da13d0b145d8c98639a6824da.zip
base-files: strip quotes from the MAC address in macaddr_canonicalize()
Extracted from http://patchwork.openwrt.org/patch/5716/ Signed-off-by: Forest Crossman <cyrozap@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41639 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/functions')
-rw-r--r--package/base-files/files/lib/functions/system.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh
index a4c0f2620c..8d75a5a8ce 100644
--- a/package/base-files/files/lib/functions/system.sh
+++ b/package/base-files/files/lib/functions/system.sh
@@ -82,6 +82,7 @@ macaddr_canonicalize()
local mac="$1"
local canon=""
+ mac=$(echo -n $mac | tr -d \")
[ ${#mac} -gt 17 ] && return
[ -n "${mac//[a-fA-F0-9\.: -]/}" ] && return