openwrtv3/target/linux/lantiq/base-files/etc/init.d/esi
John Crispin c80b429fc1 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
2015-01-18 09:40:47 +00:00

7 lines
172 B
Bash
Executable file

#!/bin/sh /etc/rc.common
# Copyright (C) 2013 OpenWrt.org
START=19
start() {
esi $(printf '%012X' $((1+0x$(tr -d : </sys/class/net/eth0/address)))) 2>/dev/console || :
}