summaryrefslogtreecommitdiffstats
path: root/extra/pm-utils/pm-utils-11-netcfg
blob: 86ff8bafd221ae770b2e96da1b9b9766aaafe453 (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
25
26
27
#!/bin/bash

. /usr/lib/pm-utils/functions

suspend_netcfg() {
	netcfg2 all-suspend
}

resume_netcfg() {
	netcfg2 all-resume
}

if [ -x /usr/bin/netcfg2 ]; then
	case "$1" in
		hibernate|suspend)
			suspend_netcfg
			;;
		thaw|resume)
			resume_netcfg
			;;
		*)
			;;
	esac
fi

exit $?