diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-11-08 12:16:21 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-11-08 12:16:21 +0000 |
commit | e3b2c6418f6bad433429969526590831c0cb97e4 (patch) | |
tree | 95feeca98ce20ce522adba0d9315840b6253c74e /tools | |
parent | c389aa40d8bf1d12ff7892b01a7dd0e50e7e3832 (diff) | |
download | master-187ad058-e3b2c6418f6bad433429969526590831c0cb97e4.tar.gz master-187ad058-e3b2c6418f6bad433429969526590831c0cb97e4.tar.bz2 master-187ad058-e3b2c6418f6bad433429969526590831c0cb97e4.zip |
base-files: mtd_get_mac_ascii bugfix
The mtd_get_mac_ascii utility function was broken. This fixes it.
- Remove the superfluous include of /lib/functions.sh. The
function is already in that file so it is pointless,
- only use a variable if the whole key word matches,
- don't try to process the MAC address if it is empty,
- use 'tr' to canonicalize the MAC address,
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
[juhosg: add more fixes, update commit message]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38690 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions