From 3a1a01b5dc0b58386fd2a12a3f6218acce53e6f7 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Fri, 22 Apr 2016 12:55:13 -0400 Subject: 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 --- udev_helper/net.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'udev_helper') 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*) -- cgit v1.2.3-65-gdbad