#!/bin/bash . "${PM_FUNCTIONS}" [ -x /usr/bin/netcfg2 ] || exit $NA suspend_netcfg() { netcfg2 all-suspend } resume_netcfg() { netcfg2 all-resume } case "$1" in suspend|hibernate) suspend_netcfg ;; resume|thaw) resume_netcfg ;; *) exit $NA ;; esac