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
This commit is contained in:
parent
6ec3f4ad06
commit
9a19e9c4b3
1 changed files with 1 additions and 1 deletions
|
@ -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 || :
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue