public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Jonatan Schlag <jonatan.schlag@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 1/5] functions.network: Add proper Exit Codes
Date: Sat, 02 Mar 2024 12:09:24 +0100	[thread overview]
Message-ID: <20240302110928.10377-1-jonatan.schlag@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 868 bytes --]

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(a)ipfire.org>
---
 src/initscripts/networking/functions.network | 4 ++++
 1 file changed, 4 insertions(+)

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)
 
-- 
2.39.2


             reply	other threads:[~2024-03-02 11:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-02 11:09 Jonatan Schlag [this message]
2024-03-02 11:09 ` [PATCH 2/5] functions.network: Add network_zone_exists Jonatan Schlag
2024-03-08 11:14   ` Jonatan Schlag
2024-03-12 10:32     ` Michael Tremer
2024-03-16  9:35       ` Jonatan Schlag
2024-03-18 16:27         ` Michael Tremer
2024-03-25  7:46           ` Jonatan Schlag
2024-03-25 10:55             ` Michael Tremer
2024-03-12  9:59   ` Michael Tremer
2024-03-16  9:43     ` Jonatan Schlag
2024-03-18 16:32       ` Michael Tremer
2024-03-25  7:55         ` Jonatan Schlag
2024-03-25 11:01           ` Michael Tremer
2024-03-02 11:09 ` [PATCH 3/5] network initscript: Use network_zone_exists Jonatan Schlag
2024-03-11 17:02   ` Michael Tremer
2024-03-16  9:46     ` Jonatan Schlag
2024-03-16 11:25       ` Michael Tremer
2024-03-02 11:09 ` [PATCH 4/5] network initscript: Avoid an infinite loop Jonatan Schlag
2024-03-02 11:09 ` [PATCH 5/5] network initscript: drop unused variable Jonatan Schlag

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240302110928.10377-1-jonatan.schlag@ipfire.org \
    --to=jonatan.schlag@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox