diff options
Diffstat (limited to 'abs/core-testing/pm-utils/11netcfg')
-rw-r--r-- | abs/core-testing/pm-utils/11netcfg | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/core-testing/pm-utils/11netcfg b/abs/core-testing/pm-utils/11netcfg new file mode 100644 index 0000000..1b4d05e --- /dev/null +++ b/abs/core-testing/pm-utils/11netcfg @@ -0,0 +1,26 @@ +#!/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 $? |