aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-01-18 09:40:47 +0000
committerJohn Crispin <john@openwrt.org>2015-01-18 09:40:47 +0000
commitc80b429fc17ddb52570c634f8d93e562d09468b6 (patch)
tree9460837cb536ab07179d8eee4a58f4af7613aa17 /target/linux
parent68f50c4e2d5fafe06235077d5ddb74ce10edb56c (diff)
downloadupstream-c80b429fc17ddb52570c634f8d93e562d09468b6.tar.gz
upstream-c80b429fc17ddb52570c634f8d93e562d09468b6.tar.bz2
upstream-c80b429fc17ddb52570c634f8d93e562d09468b6.zip
lantiq: Fix initscript issue
Currently this initscript fails if the macaddr has any leading zeroes. This patch corrects the problem. Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> SVN-Revision: 44029
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/init.d/esi2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/lantiq/base-files/etc/init.d/esi b/target/linux/lantiq/base-files/etc/init.d/esi
index 5635b5361b..ca79070c9e 100755
--- a/target/linux/lantiq/base-files/etc/init.d/esi
+++ b/target/linux/lantiq/base-files/etc/init.d/esi
@@ -3,5 +3,5 @@
START=19
start() {
- esi $(printf '%X' $((1+0x$(tr -d : </sys/class/net/eth0/address)))) 2>/dev/null || :
+ esi $(printf '%012X' $((1+0x$(tr -d : </sys/class/net/eth0/address)))) 2>/dev/console || :
}