summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2014-04-23 11:19:26 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-24 09:03:31 +0200
commitfb67ada79add357cf14c919504e27d54d91ca444 (patch)
tree4086a576fe41e51e3f8ea02f0836aa0df77022c3 /defaultenv
parent3018f1367075dd5310fc5f5ceaf6706ae67b3013 (diff)
downloadbarebox-fb67ada79add357cf14c919504e27d54d91ca444.tar.gz
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 <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/defaultenv-2-base/network/eth02
1 files changed, 2 insertions, 0 deletions
diff --git a/defaultenv/defaultenv-2-base/network/eth0 b/defaultenv/defaultenv-2-base/network/eth0
index 7e731ca..33fe7c1 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