mirror of
https://github.com/gryf/wicd.git
synced 2026-01-08 06:44:20 +01:00
Fixup pm-utils hook to return proper exit codes and fix logging.
This commit is contained in:
@@ -7,15 +7,13 @@
|
|||||||
wicd_suspend()
|
wicd_suspend()
|
||||||
{
|
{
|
||||||
# Put wifi interface down
|
# Put wifi interface down
|
||||||
%LIB%suspend.py 2>/dev/null
|
%LIB%suspend.py 2>/dev/null || return $NA
|
||||||
return $NA
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wicd_resume()
|
wicd_resume()
|
||||||
{
|
{
|
||||||
# Bring wifi interface back up
|
# Bring wifi interface back up
|
||||||
%LIB%autoconnect.py 2>/dev/null
|
%LIB%autoconnect.py 2>/dev/null || return $NA
|
||||||
return $NA
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|||||||
Reference in New Issue
Block a user