/[gentoo-x86]/net-misc/networkmanager/files/10-openrc-nm-interfaces
Gentoo

Contents of /net-misc/networkmanager/files/10-openrc-nm-interfaces

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Feb 1 08:00:19 2012 UTC (2 years, 10 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Drop old and undo accidental broken CVS commit.

(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

1 #!/bin/sh
2 # Copyright (c) 2012 Alexandre Rostovtsev
3 # Released under the 2-clause BSD license.
4
5 # Ensures that the nm-interfaces OpenRC service is marked as started if
6 # NetworkManager had been started via openrc and brought up some interfaces.
7
8 # Exit if no valid interface name given
9 if [ -z "$1" -o "x$1" = "xnone" ]; then
10 exit 1
11 fi
12
13 # Exit if the NetworkManager OpenRC service is not running
14 "@EPREFIX@/etc/init.d/NetworkManager" status &> /dev/null || exit 1
15
16 case "$2" in
17 up)
18 exec "@EPREFIX@/etc/init.d/nm-interfaces" mark-started
19 ;;
20 down)
21 exec "@EPREFIX/etc/init.d/nm-interfaces" stop
22 ;;
23 esac
24
25 exit 1

  ViewVC Help
Powered by ViewVC 1.1.20