[Pm-utils] [patch review 2/2] Followup to the last patch. Sunce we moved pm_main functionality to the only place it is actually used, remove it from functions.
Victor Lowther
victor.lowther at gmail.com
Wed Feb 6 21:17:05 PST 2008
---
pm/functions.in | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/pm/functions.in b/pm/functions.in
index a9f0c1b..a3d711b 100644
--- a/pm/functions.in
+++ b/pm/functions.in
@@ -190,21 +190,6 @@ init_logfile() {
fi
}
-pm_main()
-{
- init_logfile "$PM_LOGFILE"
- take_suspend_lock || exit 1
-
- # make sure that our locks are unlocked no matter how the script exits
- trap remove_suspend_lock 0
-
- rm -f "$INHIBIT"
-
- run_hooks sleep "$1" reverse "$2"
-
- return 0
-}
-
_rmmod() {
if modprobe -r $1; then
touch "${STORAGEDIR}/module:$1"
--
1.5.3.8
More information about the Pm-utils
mailing list