From 2b47ff538eecdcece3a9c00f44fc7909c170fd45 Mon Sep 17 00:00:00 2001 From: Dan O'Reilly Date: Thu, 11 Dec 2008 00:56:12 -0500 Subject: [PATCH] Apply patch from rworkman Update suspend/resume script --- in/init=slackware=rc.wicd.in | 9 --------- in/other=55wicd.in | 26 ++++++++++++++------------ 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/in/init=slackware=rc.wicd.in b/in/init=slackware=rc.wicd.in index b2f29f3..6373c6a 100755 --- a/in/init=slackware=rc.wicd.in +++ b/in/init=slackware=rc.wicd.in @@ -17,10 +17,6 @@ wicd_start() { else echo "Starting wicd daemon..." wicd 2>/dev/null 1>&2 - # Activate the pm-utils sleep hook - if [ ! -x %PMUTILS%55wicd ]; then - chmod +x %PMUTILS%55wicd - fi fi } @@ -32,11 +28,6 @@ wicd_stop() { else pkill -f python.*wicd-daemon.py 2>/dev/null fi - # Deactivate the pm-utils sleep hook - if [ -x %PMUTILS%55wicd ]; then - chmod -x %PMUTILS%55wicd - fi - } # See how we were called and take appropriate action diff --git a/in/other=55wicd.in b/in/other=55wicd.in index f35500d..94ca3f1 100755 --- a/in/other=55wicd.in +++ b/in/other=55wicd.in @@ -6,24 +6,26 @@ wicd_suspend() { - # Put wifi interface down - %LIB%suspend.py + # Put wifi interface down + %LIB%suspend.py 2>/dev/null + return $NA } wicd_resume() { - # Bring wifi interface back up - %LIB%autoconnect.py + # Bring wifi interface back up + %LIB%autoconnect.py 2>/dev/null + return $NA } case "$1" in - hibernate|suspend) - wicd_suspend - ;; - thaw|resume) - wicd_resume - ;; - *) exit $NA - ;; + hibernate|suspend) + wicd_suspend + ;; + thaw|resume) + wicd_resume + ;; + *) exit $NA + ;; esac