mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
27 lines
287 B
Text
27 lines
287 B
Text
|
#!/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 $?
|