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:
Executable
+29
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user