diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-07-14 10:25:49 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-07-14 10:25:49 +0000 |
commit | 69abf630cf32e022cc56f405f2e335c4e913965f (patch) | |
tree | be4fbf57e4439820b833aabb331340b7d4b742a6 | |
parent | c8bde9da4af4b66ce613d37a04bbd601d8b0329d (diff) | |
download | mtk-20170518-69abf630cf32e022cc56f405f2e335c4e913965f.zip mtk-20170518-69abf630cf32e022cc56f405f2e335c4e913965f.tar.gz mtk-20170518-69abf630cf32e022cc56f405f2e335c4e913965f.tar.bz2 |
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>
SVN-Revision: 41639
-rw-r--r-- | package/base-files/files/lib/functions/system.sh | 1 |
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 a4c0f26..8d75a5a 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 |