1
0
mirror of https://github.com/gryf/wicd.git synced 2026-02-22 01:45:46 +01:00
Files
wicd/in/other=55wicd.in
2008-12-07 21:15:29 -05:00

30 lines
409 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
}
wicd_resume()
{
# Bring wifi interface back up
%LIB%autoconnect.py
}
case "$1" in
hibernate|suspend)
wicd_suspend
;;
thaw|resume)
wicd_resume
;;
*) exit $NA
;;
esac