From da38d2b0170922c01a607a04af092e77ca2d64d1 Mon Sep 17 00:00:00 2001 From: tnut Date: Thu, 3 May 2012 21:10:08 +0200 Subject: ajout pm-utils --- pm-utils/pm-utils-11-netcfg | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pm-utils/pm-utils-11-netcfg (limited to 'pm-utils/pm-utils-11-netcfg') diff --git a/pm-utils/pm-utils-11-netcfg b/pm-utils/pm-utils-11-netcfg new file mode 100644 index 000000000..86ff8bafd --- /dev/null +++ b/pm-utils/pm-utils-11-netcfg @@ -0,0 +1,27 @@ +#!/bin/bash + +. /usr/lib/pm-utils/functions + +suspend_netcfg() { + netcfg2 all-suspend +} + +resume_netcfg() { + netcfg2 all-resume +} + +if [ -x /usr/bin/netcfg2 ]; then + case "$1" in + hibernate|suspend) + suspend_netcfg + ;; + thaw|resume) + resume_netcfg + ;; + *) + ;; + esac +fi + +exit $? + -- cgit v1.2.3-70-g09d2