diff options
author | John Crispin <blogic@openwrt.org> | 2015-01-18 09:40:47 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-01-18 09:40:47 +0000 |
commit | 7ec3fcc08d5caffafab90c34052387c9ec4dd7d0 (patch) | |
tree | 90f006ff7da6db6e74c2bb0e32dc677a86e22876 | |
parent | a8fba08305d734a75714e94db9cc506de4aa511b (diff) | |
download | upstream-7ec3fcc08d5caffafab90c34052387c9ec4dd7d0.tar.gz upstream-7ec3fcc08d5caffafab90c34052387c9ec4dd7d0.tar.bz2 upstream-7ec3fcc08d5caffafab90c34052387c9ec4dd7d0.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44029 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | target/linux/lantiq/base-files/etc/init.d/esi | 2 |
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 || : } |