1
0
mirror of https://github.com/gryf/wicd.git synced 2026-04-24 23:31:26 +02:00

merging in a bunch of trunk changes

This commit is contained in:
Dan O'Reilly
2008-12-07 21:15:29 -05:00
parent a6acb8a661
commit 46bbde7745
8 changed files with 79 additions and 25 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/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