diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-04-16 17:32:20 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-04-16 17:32:20 +0200 |
commit | 250aa4794191a6bd8805555a5fd76d1fc6e3b5ea (patch) | |
tree | 50417c309ac97d327ce29527e039851394513a6e /scripts | |
parent | 3cfb2c957a25f5c934e921f6bca49283f2919442 (diff) | |
download | netctl-250aa4794191a6bd8805555a5fd76d1fc6e3b5ea.tar.gz netctl-250aa4794191a6bd8805555a5fd76d1fc6e3b5ea.tar.xz |
Add pm-utils support
Moved from the pm-utils package.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/pm-utils | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/pm-utils b/scripts/pm-utils new file mode 100755 index 0000000..311851f --- /dev/null +++ b/scripts/pm-utils @@ -0,0 +1,26 @@ +#!/bin/bash + +. /usr/lib/pm-utils/functions + +suspend_netcfg() { + netcfg all-suspend +} + +resume_netcfg() { + netcfg all-resume +} + +if [ -x /usr/bin/netcfg ]; then + case "$1" in + hibernate|suspend) + suspend_netcfg + ;; + thaw|resume) + resume_netcfg + ;; + *) + ;; + esac +fi + +exit $? |