From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/netifrc:master commit in: udev_helper/
Date: Fri, 7 Mar 2014 17:37:12 +0000 (UTC) [thread overview]
Message-ID: <1394213763.c10f1f89c55d075bf5be50b6b75431252cf5952e.robbat2@OpenRC> (raw)
commit: c10f1f89c55d075bf5be50b6b75431252cf5952e
Author: Samuli Suominen <ssuominen <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 7 17:34:48 2014 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Mar 7 17:36:03 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=c10f1f89
udev_helper: do not run with newnet
If the system is using newnet, then we should not run to fire the
netifrc triggers.
X-Gentoo-Bug: 503530
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
udev_helper/net.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/udev_helper/net.sh b/udev_helper/net.sh
index af61870..88aee59 100644
--- a/udev_helper/net.sh
+++ b/udev_helper/net.sh
@@ -16,6 +16,20 @@ case ${IFACE} in
exit 0 ;;
esac
+is_service_enabled() {
+ local svc="$1"
+ [ ! -e "/etc/init.d/${svc}" ] && return 1
+ [ -e "/etc/runlevels/boot/${svc}" ] && return 0
+ [ -e "/etc/runlevels/default/${svc}" ] && return 0
+ [ -e "/etc/runlevels/sysinit/${svc}" ] && return 0
+ return 1
+}
+
+# stop here if OpenRC's so called "newnet" is enabled, bug #503530
+if is_service_enabled network; then
+ exit 0
+fi
+
# stop here if coldplug is disabled, Bug #206518
if [ "${do_not_run_plug_service}" = 1 ]; then
exit 0
next reply other threads:[~2014-03-07 17:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-07 17:37 Robin H. Johnson [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-04-22 17:18 [gentoo-commits] proj/netifrc:master commit in: udev_helper/ Ian Stakenvicius
2016-07-05 18:13 Robin H. Johnson
2020-05-31 23:21 Robin H. Johnson
2021-01-18 18:00 Lars Wendler
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=1394213763.c10f1f89c55d075bf5be50b6b75431252cf5952e.robbat2@OpenRC \
--to=robbat2@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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