[1/5] functions.network: Add proper Exit Codes

Message ID 20240302110928.10377-1-jonatan.schlag@ipfire.org
State New
Headers
Series [1/5] functions.network: Add proper Exit Codes |

Commit Message

Jonatan Schlag March 2, 2024, 11:09 a.m. UTC
  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(+)
  

Patch

diff --git a/src/initscripts/networking/functions.network b/src/initscripts/networking/functions.network
index 4c7ad51d4..dedbb6f7f 100644
--- a/src/initscripts/networking/functions.network
+++ b/src/initscripts/networking/functions.network
@@ -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)