From c80b429fc17ddb52570c634f8d93e562d09468b6 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 18 Jan 2015 09:40:47 +0000 Subject: [PATCH] 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 SVN-Revision: 44029 --- target/linux/lantiq/base-files/etc/init.d/esi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/lantiq/base-files/etc/init.d/esi b/target/linux/lantiq/base-files/etc/init.d/esi index 5635b5361b30..ca79070c9ed3 100755 --- 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 : /dev/null || : + esi $(printf '%012X' $((1+0x$(tr -d : /dev/console || : } -- 2.30.2