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
This commit is contained in:
John Crispin 2015-01-18 09:40:47 +00:00
parent 68f50c4e2d
commit c80b429fc1

View file

@ -3,5 +3,5 @@
START=19 START=19
start() { 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 || :
} }