projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd8da5
)
base-files: strip quotes from the MAC address in macaddr_canonicalize()
author
Gabor Juhos
<juhosg@openwrt.org>
Mon, 14 Jul 2014 10:25:49 +0000
(10:25 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Mon, 14 Jul 2014 10:25:49 +0000
(10:25 +0000)
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
package/base-files/files/lib/functions/system.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/functions/system.sh
b/package/base-files/files/lib/functions/system.sh
index
a4c0f26
..
8d75a5a
100644
(file)
--- 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