repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git]
/
pm-utils-git
/
11netcfg
blob
1b4d05ee711d0852b063f4e64df66bec32f3c7c4
1
#!/bin/bash
2
3
.
/
usr
/
lib
/
pm-utils
/
functions
4
5
suspend_netcfg
() {
6
netcfg2 all-suspend
7
}
8
9
resume_netcfg
() {
10
netcfg2 all-resume
11
}
12
13
if
[
-x
/
usr
/
bin
/
netcfg2
];
then
14
case
"
$1
"
in
15
hibernate|
suspend
)
16
suspend_netcfg
17
;;
18
thaw|resume
)
19
resume_netcfg
20
;;
21
*)
22
;;
23
esac
24
fi
25
26
exit
$?