[1/5] functions.network: Add proper Exit Codes
Commit Message
This ist borrowed from here:
https://git.ipfire.org/?p=network.git;a=blob_plain;f=src/functions/functions.constants;h=0d6cdd2fba47fa4db933b054496ed95cd3d905f3;hb=HEAD
and can be extended later on.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
src/initscripts/networking/functions.network | 4 ++++
1 file changed, 4 insertions(+)
@@ -22,6 +22,10 @@
. /etc/sysconfig/rc
. $rc_functions
+# Proper error codes
+EXIT_TRUE=0
+EXIT_FALSE=1
+
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
eval $(/usr/local/bin/readhash /var/ipfire/dns/settings)