diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-03-29 16:21:26 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-03-29 16:21:26 -0500 |
commit | 4db81081d77847abc7461423dc0b40b60587c2d2 (patch) | |
tree | 19821d163a413ca5b670b83b6ef26749ec09ffc1 /pm/functions.in | |
parent | b0c4c0a8bd4139a9da92f4cd25d0694b5911d9e1 (diff) |
Comment fixups in preperation for release.
In particular, add comments to the top of the sleep hooks describing what
each of them is for.
Diffstat (limited to 'pm/functions.in')
-rw-r--r-- | pm/functions.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pm/functions.in b/pm/functions.in index d804ad0..ba1eded 100644 --- a/pm/functions.in +++ b/pm/functions.in @@ -38,7 +38,7 @@ spin_lock() release_lock() { # $1 = lockfile - # make sure it is ours first.i + # make sure it is ours first. local lock="${LOCKDIR}/${1##*/}" rm -f "${lock}" return $? @@ -73,6 +73,8 @@ get_power_status() return $RETVAL } +# TODO: Module loading and unloading is Linux-specific. +# Look into modularizing this into an os-specific set of support routines. _rmmod() { if modprobe -r "$1"; then @@ -120,6 +122,7 @@ modunload() } # reload all the modules in no particular order. +# modprobe should take care of loading prerequisites for us. modreload() { for x in "${STORAGEDIR}"/module:* ; do @@ -130,6 +133,8 @@ modreload() done } +# Service management is sysv dependent. +# TODO: modularize this to make it work with other init systems. if ! command_exists service; then service() { |