summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/networkmanager/files/10-openrc-status-r2')
-rw-r--r--net-misc/networkmanager/files/10-openrc-status-r223
1 files changed, 0 insertions, 23 deletions
diff --git a/net-misc/networkmanager/files/10-openrc-status-r2 b/net-misc/networkmanager/files/10-openrc-status-r2
deleted file mode 100644
index 967c56600a54..000000000000
--- a/net-misc/networkmanager/files/10-openrc-status-r2
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-# Copyright (c) 2012 Alexandre Rostovtsev
-# Released under the 2-clause BSD license.
-
-# Ensures that the NetworkManager OpenRC service is marked as started and
-# providing net only when it has a successful connection.
-
-# Ensure rc-service is in PATH
-PATH="${PATH}:@EPREFIX@/sbin:@EPREFIX@/usr/sbin"
-
-# Exit if the NetworkManager OpenRC service is not running
-rc-service NetworkManager status 2>&1 | grep -Eq "status: (starting|started|inactive|stopping)" || exit 0
-
-# Call rc-service in background mode so that the start/stop functions update
-# NetworkManager service status to started or inactive instead of actually
-# starting or stopping the daemon
-export IN_BACKGROUND=YES
-
-case "$2" in
- up) nm-online -t 0 -x && exec rc-service NetworkManager start ;;
- down) nm-online -t 0 -x || exec rc-service NetworkManager stop ;;
- pre-sleep) exec rc-service NetworkManager stop ;;
-esac