Author: juhosg
Date: 2014-07-14 12:25:49 +0200 (Mon, 14 Jul 2014)
New Revision: 41639

Modified:
   trunk/package/base-files/files/lib/functions/system.sh
Log:
base-files: strip quotes from the MAC address in macaddr_canonicalize()

Extracted from http://patchwork.openwrt.org/patch/5716/

Signed-off-by: Forest Crossman <[email protected]>
Signed-off-by: Gabor Juhos <[email protected]>

Modified: trunk/package/base-files/files/lib/functions/system.sh
===================================================================
--- trunk/package/base-files/files/lib/functions/system.sh      2014-07-14 
07:38:52 UTC (rev 41638)
+++ trunk/package/base-files/files/lib/functions/system.sh      2014-07-14 
10:25:49 UTC (rev 41639)
@@ -82,6 +82,7 @@
        local mac="$1"
        local canon=""
 
+       mac=$(echo -n $mac | tr -d \")
        [ ${#mac} -gt 17 ] && return
        [ -n "${mac//[a-fA-F0-9\.: -]/}" ] && return
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to