From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonatan Schlag To: development@lists.ipfire.org Subject: [PATCH 1/5] functions.network: Add proper Exit Codes Date: Sat, 02 Mar 2024 12:09:24 +0100 Message-ID: <20240302110928.10377-1-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8378379427603551803==" List-Id: --===============8378379427603551803== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This ist borrowed from here: https://git.ipfire.org/?p=3Dnetwork.git;a=3Dblob_plain;f=3Dsrc/functions/func= tions.constants;h=3D0d6cdd2fba47fa4db933b054496ed95cd3d905f3;hb=3DHEAD and can be extended later on. Signed-off-by: Jonatan Schlag --- src/initscripts/networking/functions.network | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/initscripts/networking/functions.network b/src/initscripts/n= etworking/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 =20 +# Proper error codes +EXIT_TRUE=3D0 +EXIT_FALSE=3D1 + eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings) eval $(/usr/local/bin/readhash /var/ipfire/dns/settings) =20 --=20 2.39.2 --===============8378379427603551803==--