public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/netifrc:master commit in: udev_helper/
@ 2014-03-07 17:37 Robin H. Johnson
  0 siblings, 0 replies; 5+ messages in thread
From: Robin H. Johnson @ 2014-03-07 17:37 UTC (permalink / raw
  To: gentoo-commits

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/netifrc:master commit in: udev_helper/
@ 2016-04-22 17:18 Ian Stakenvicius
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Stakenvicius @ 2016-04-22 17:18 UTC (permalink / raw
  To: gentoo-commits

commit:     3a1a01b5dc0b58386fd2a12a3f6218acce53e6f7
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 22 16:55:13 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 17:16:14 2016 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=3a1a01b5

udev: Bail out early if not running openrc

Bug: https://bugs.gentoo.org/580846
Closes: https://github.com/gentoo/netifrc/pull/19
Signed-off-by: Ian Stakenvicius <axs <AT> gentoo.org>

 udev_helper/net.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/udev_helper/net.sh b/udev_helper/net.sh
index 88aee59..85b304b 100644
--- a/udev_helper/net.sh
+++ b/udev_helper/net.sh
@@ -10,6 +10,11 @@ ACTION=$2
 
 SCRIPT=/etc/init.d/net.$IFACE
 
+# make sure openrc is managing services
+if [ ! -d /run/openrc ]; then
+	exit 0
+fi
+
 # ignore interfaces that are registered after being "up" (?)
 case ${IFACE} in
 	ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*)


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/netifrc:master commit in: udev_helper/
@ 2016-07-05 18:13 Robin H. Johnson
  0 siblings, 0 replies; 5+ messages in thread
From: Robin H. Johnson @ 2016-07-05 18:13 UTC (permalink / raw
  To: gentoo-commits

commit:     b1a6abadd8c4ca2146ed6b08d53e46d35d320e17
Author:     Mike Gilbert <floppymaster <AT> gmail <DOT> com>
AuthorDate: Fri Apr 22 17:45:11 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 17:45:11 2016 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=b1a6abad

udev: Bail out early if not running openrc (#19)

Bug: https://bugs.gentoo.org/580846

 udev_helper/net.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/udev_helper/net.sh b/udev_helper/net.sh
index 88aee59..85b304b 100644
--- a/udev_helper/net.sh
+++ b/udev_helper/net.sh
@@ -10,6 +10,11 @@ ACTION=$2
 
 SCRIPT=/etc/init.d/net.$IFACE
 
+# make sure openrc is managing services
+if [ ! -d /run/openrc ]; then
+	exit 0
+fi
+
 # ignore interfaces that are registered after being "up" (?)
 case ${IFACE} in
 	ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*)


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/netifrc:master commit in: udev_helper/
@ 2020-05-31 23:21 Robin H. Johnson
  0 siblings, 0 replies; 5+ messages in thread
From: Robin H. Johnson @ 2020-05-31 23:21 UTC (permalink / raw
  To: gentoo-commits

commit:     db98502979abd91749cdede8e096fe3b814441a7
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun May 31 23:20:59 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun May 31 23:20:59 2020 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=db985029

udev_helper: recognize more interface types

Bug: https://bugs.gentoo.org/691372
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 udev_helper/net.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/udev_helper/net.sh b/udev_helper/net.sh
index b15b187..f1c4f20 100644
--- a/udev_helper/net.sh
+++ b/udev_helper/net.sh
@@ -17,7 +17,7 @@ fi
 
 # ignore interfaces that are registered after being "up" (?)
 case ${IFACE} in
-	ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*)
+	ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*|macvtap*|ipvl*|vlan*|vxlan*|peth*|ifb*|veth*|gre*|vrf*)
 		exit 0 ;;
 esac
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/netifrc:master commit in: udev_helper/
@ 2021-01-18 18:00 Lars Wendler
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Wendler @ 2021-01-18 18:00 UTC (permalink / raw
  To: gentoo-commits

commit:     6d8ec90ad901b7406b0b23878de112296d9e16ac
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 18 14:47:34 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Jan 18 14:49:14 2021 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=6d8ec90a

udev_helper/net.sh: Ignore wireguard interfaces

Bug: https://bugs.gentoo.org/758938
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 udev_helper/net.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/udev_helper/net.sh b/udev_helper/net.sh
index f1c4f20..0c114a5 100644
--- a/udev_helper/net.sh
+++ b/udev_helper/net.sh
@@ -17,7 +17,7 @@ fi
 
 # ignore interfaces that are registered after being "up" (?)
 case ${IFACE} in
-	ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*|macvtap*|ipvl*|vlan*|vxlan*|peth*|ifb*|veth*|gre*|vrf*)
+	ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*|macvtap*|ipvl*|vlan*|vxlan*|peth*|ifb*|veth*|gre*|vrf*|wg*)
 		exit 0 ;;
 esac
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-18 18:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-22 17:18 [gentoo-commits] proj/netifrc:master commit in: udev_helper/ Ian Stakenvicius
  -- strict thread matches above, loose matches on Subject: below --
2021-01-18 18:00 Lars Wendler
2020-05-31 23:21 Robin H. Johnson
2016-07-05 18:13 Robin H. Johnson
2014-03-07 17:37 Robin H. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox