From b2badb11c7f3f71c80bd768fb62b0ef0b0718254 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Sun, 13 Sep 2009 23:43:46 -0400 Subject: added more contrib/ files Signed-off-by: Jim Pryor --- contrib/11netcfg | 57 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 28 deletions(-) (limited to 'contrib/11netcfg') 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: -- cgit v1.2.3-24-g4f1b