projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8fba08
)
lantiq: Fix initscript issue
author
John Crispin
<blogic@openwrt.org>
Sun, 18 Jan 2015 09:40:47 +0000
(09:40 +0000)
committer
John Crispin
<blogic@openwrt.org>
Sun, 18 Jan 2015 09:40:47 +0000
(09:40 +0000)
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
target/linux/lantiq/base-files/etc/init.d/esi
patch
|
blob
|
history
diff --git
a/target/linux/lantiq/base-files/etc/init.d/esi
b/target/linux/lantiq/base-files/etc/init.d/esi
index
5635b53
..
ca79070
100755
(executable)
--- 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
|| :
}