From fb67ada79add357cf14c919504e27d54d91ca444 Mon Sep 17 00:00:00 2001 From: Juergen Borleis Date: Wed, 23 Apr 2014 11:19:26 +0200 Subject: default environment: force a specific return value Since commit a162dfe50345d3461010759f8a0e79f7e388c140 the ifup command runs this file as a script. Due to a hush misbehave it could happen it returns an error code by accident. For example if the last instructions in this file are: if [ false ]; then echo "friesel" fi the hush returns 1 after running this script instead of 0 and in this case the ifup command fails. I know, the correct fix would be to fix the hush, because it is a generic issue...but how? Signed-off-by: Juergen Borleis Signed-off-by: Sascha Hauer --- defaultenv/defaultenv-2-base/network/eth0 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/defaultenv/defaultenv-2-base/network/eth0 b/defaultenv/defaultenv-2-base/network/eth0 index 7e731cae00..33fe7c1b2b 100644 --- a/defaultenv/defaultenv-2-base/network/eth0 +++ b/defaultenv/defaultenv-2-base/network/eth0 @@ -14,3 +14,5 @@ serverip= #ethaddr=xx:xx:xx:xx:xx:xx # put code to discover eth0 (i.e. 'usb') to /env/network/eth0-discover + +exit 0 -- cgit v1.2.3