1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-03 04:14:12 +01:00
Files
wicd/in/other=55wicd.in
Dan O'Reilly 2b47ff538e Apply patch from rworkman
Update suspend/resume script
2008-12-11 00:56:12 -05:00

32 lines
406 B
Bash
Executable File

#!/bin/sh
# pm-utils hook to handle suspend/resume properly for wicd
. "${PM_FUNCTIONS}" || . "${FUNCTIONS}"
wicd_suspend()
{
# Put wifi interface down
%LIB%suspend.py 2>/dev/null
return $NA
}
wicd_resume()
{
# 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
;;
esac