#!/bin/sh # pm-utils hook to handle suspend/resume properly for wicd . "${PM_FUNCTIONS}" || . "${FUNCTIONS}" wicd_suspend() { # Put wifi interface down %LIB%suspend.py 2>/dev/null return $NA } wicd_resume() { # Bring wifi interface back up %LIB%autoconnect.py 2>/dev/null return $NA } case "$1" in hibernate|suspend) wicd_suspend ;; thaw|resume) wicd_resume ;; *) exit $NA ;; esac