Browse Source

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 <[email protected]>

SVN-Revision: 44029
John Crispin 11 years ago
parent
commit
c80b429fc1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      target/linux/lantiq/base-files/etc/init.d/esi

+ 1 - 1
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 || :
 }