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

Contents of /net-misc/networkmanager/files/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, 2 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 #!/sbin/runscript
2 # Copyright (c) 2012 Alexandre Rostovtsev
3 # Released under the 2-clause BSD license.
4
5 description="Virtual service for interfaces configured by NetworkManager. \
6 Do not start this service manually or add it to any runlevels!"
7
8 depend()
9 {
10 need NetworkManager
11 provide net
12 }
13
14 start()
15 {
16 eerror "${RC_SVCNAME} should not be started manually or added to any runlevels."
17 return 1
18 }
19
20 # Separate function to prevent warnings on starting service multiple times
21 mark_started()
22 {
23 service_started && return 0
24 ebegin "Marking NetworkManager network interfaces as started"
25 mark_service_started
26 eend 0
27 }
28
29 stop()
30 {
31 [ "x$(LC_ALL=C nmcli -t -f state nm 2> /dev/null)" = "xconnected" ] && return 1
32 ebegin "Marking NetworkManager network interfaces as stopped"
33 eend 0
34 }

  ViewVC Help
Powered by ViewVC 1.1.20