summaryrefslogtreecommitdiff
path: root/pcr/openrc-misc/10-openrc-status-r4
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-08-28 19:50:17 -0500
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:14:58 -0300
commit4d6f304fcf80e7161ecdcf68117895526a92ca85 (patch)
tree25251120a2b39b34e2655fc55b57e473ae28d433 /pcr/openrc-misc/10-openrc-status-r4
parent36a1a87cbf2435efa850805951c1a894e286d65c (diff)
downloadabslibre-4d6f304fcf80e7161ecdcf68117895526a92ca85.tar.gz
abslibre-4d6f304fcf80e7161ecdcf68117895526a92ca85.tar.bz2
abslibre-4d6f304fcf80e7161ecdcf68117895526a92ca85.zip
openrc-misc-20150828-1: updating version
Diffstat (limited to 'pcr/openrc-misc/10-openrc-status-r4')
-rw-r--r--pcr/openrc-misc/10-openrc-status-r435
1 files changed, 0 insertions, 35 deletions
diff --git a/pcr/openrc-misc/10-openrc-status-r4 b/pcr/openrc-misc/10-openrc-status-r4
deleted file mode 100644
index e195ccc19..000000000
--- a/pcr/openrc-misc/10-openrc-status-r4
+++ /dev/null
@@ -1,35 +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.
-
-if [ ! -e "/run/openrc/softlevel" ]; then
- # OpenRC is not running
- exit 0
-fi
-
-# 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 &&
- ! rc-service NetworkManager status 2>&1 | grep -q started &&
- exec rc-service NetworkManager start ;;
- down) nm-online -t 0 -x ||
- rc-service NetworkManager status 2>&1 | grep -q stopped ||
- exec rc-service NetworkManager stop ;;
- pre-sleep) rc-service NetworkManager status 2>&1 | grep -q stopped ||
- exec rc-service NetworkManager stop ;;
-esac
-exit 0
-# vim: set ts=4: