summaryrefslogtreecommitdiffstats
path: root/contrib/11netcfg
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-09-14 05:43:46 +0200
committerJames Rayner <james@archlinux.org>2009-09-14 08:27:02 +0200
commitb2badb11c7f3f71c80bd768fb62b0ef0b0718254 (patch)
tree16358716c082808565ce9d2bcf9563042233871c /contrib/11netcfg
parent2c5d0f94f08527151267482f67f1c4964f0a75e1 (diff)
downloadnetctl-b2badb11c7f3f71c80bd768fb62b0ef0b0718254.tar.gz
netctl-b2badb11c7f3f71c80bd768fb62b0ef0b0718254.tar.xz
added more contrib/ files
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'contrib/11netcfg')
-rwxr-xr-xcontrib/11netcfg57
1 files changed, 29 insertions, 28 deletions
diff --git a/contrib/11netcfg b/contrib/11netcfg
index 9a453d9..b1a5d5f 100755
--- a/contrib/11netcfg
+++ b/contrib/11netcfg
@@ -4,41 +4,42 @@ source /usr/lib/pm-utils/functions
source /etc/pm/config.d/netcfg
suspend_netcfg() {
- case $NETCFG_SUSPEND in
- daemons)
- stopservice net-profiles
- stopservice net-auto
- ;;
- retain|*)
- netcfg all-suspend
- ;;
- esac
+ case $NETCFG_SUSPEND in
+ daemons)
+ stopservice net-profiles
+ stopservice net-auto
+ ;;
+ retain|*)
+ netcfg all-suspend
+ ;;
+ esac
}
resume_netcfg() {
- case $NETCFG_SUSPEND in
- daemons)
- restartservice net-profiles
- restartservice net-auto
- ;;
- retain|*)
- netcfg all-resume
- ;;
- esac
+ case $NETCFG_SUSPEND in
+ daemons)
+ restartservice net-profiles
+ restartservice net-auto
+ ;;
+ retain|*)
+ netcfg all-resume
+ ;;
+ esac
}
if [ -x /usr/bin/netcfg2 ]; then
- case "$1" in
- hibernate|suspend)
- suspend_netcfg
- ;;
- thaw|resume)
- resume_netcfg
- ;;
- *)
- ;;
- esac
+ case "$1" in
+ hibernate|suspend)
+ suspend_netcfg
+ ;;
+ thaw|resume)
+ resume_netcfg
+ ;;
+ *)
+ ;;
+ esac
fi
exit $?
+# vim: ft=sh ts=4 et sw=4: