diff options
Diffstat (limited to 'contrib/11netcfg')
-rwxr-xr-x | contrib/11netcfg | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/contrib/11netcfg b/contrib/11netcfg deleted file mode 100755 index db65f5a..0000000 --- a/contrib/11netcfg +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -source /usr/lib/pm-utils/functions -source /etc/pm/config.d/netcfg - -suspend_netcfg() { - case $NETCFG_SUSPEND in - daemons) - stopservice net-profiles - stopservice net-auto-wired - stopservice net-auto-wireless - ;; - retain|*) - netcfg all-suspend - ;; - esac -} - -resume_netcfg() { - case $NETCFG_SUSPEND in - daemons) - restartservice net-profiles - restartservice net-auto-wired - restartservice net-auto-wireless - ;; - retain|*) - netcfg all-resume - ;; - esac -} - -if [ -x /usr/bin/netcfg2 ]; then - case "$1" in - hibernate|suspend) - suspend_netcfg - ;; - thaw|resume) - resume_netcfg - ;; - *) - ;; - esac -fi - -exit $? - -# vim: ft=sh ts=4 et sw=4: |