mirror of
https://github.com/gryf/wicd.git
synced 2026-01-05 05:14:17 +01:00
Apply patch from rworkman
Update suspend/resume script
This commit is contained in:
@@ -17,10 +17,6 @@ wicd_start() {
|
|||||||
else
|
else
|
||||||
echo "Starting wicd daemon..."
|
echo "Starting wicd daemon..."
|
||||||
wicd 2>/dev/null 1>&2
|
wicd 2>/dev/null 1>&2
|
||||||
# Activate the pm-utils sleep hook
|
|
||||||
if [ ! -x %PMUTILS%55wicd ]; then
|
|
||||||
chmod +x %PMUTILS%55wicd
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,11 +28,6 @@ wicd_stop() {
|
|||||||
else
|
else
|
||||||
pkill -f python.*wicd-daemon.py 2>/dev/null
|
pkill -f python.*wicd-daemon.py 2>/dev/null
|
||||||
fi
|
fi
|
||||||
# Deactivate the pm-utils sleep hook
|
|
||||||
if [ -x %PMUTILS%55wicd ]; then
|
|
||||||
chmod -x %PMUTILS%55wicd
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# See how we were called and take appropriate action
|
# See how we were called and take appropriate action
|
||||||
|
|||||||
@@ -7,13 +7,15 @@
|
|||||||
wicd_suspend()
|
wicd_suspend()
|
||||||
{
|
{
|
||||||
# Put wifi interface down
|
# Put wifi interface down
|
||||||
%LIB%suspend.py
|
%LIB%suspend.py 2>/dev/null
|
||||||
|
return $NA
|
||||||
}
|
}
|
||||||
|
|
||||||
wicd_resume()
|
wicd_resume()
|
||||||
{
|
{
|
||||||
# Bring wifi interface back up
|
# Bring wifi interface back up
|
||||||
%LIB%autoconnect.py
|
%LIB%autoconnect.py 2>/dev/null
|
||||||
|
return $NA
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|||||||
Reference in New Issue
Block a user