summaryrefslogtreecommitdiff
blob: dabd18326ae3d6135501831d621942e74765c871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

#
# net.eth0, net.eth1, network, wicd, NetworkManager
service="net.eth0"

if [ $(rc-service -e net.eth0) ]
then
	service="net.eth0"
else
	service="network"
fi

case "$1" in
	suspend-vm)
		rc-service $service stop
		;;
	resume-vm)
		rc-service $service start
		;;
	*)
		;;
esac