diff options
-rwxr-xr-x | pm/sleep.d/00clear | 2 | ||||
-rwxr-xr-x | pm/sleep.d/00logging | 2 | ||||
-rwxr-xr-x | pm/sleep.d/10NetworkManager | 2 | ||||
-rwxr-xr-x | pm/sleep.d/20video | 2 | ||||
-rwxr-xr-x | pm/sleep.d/49bluetooth | 2 | ||||
-rwxr-xr-x | pm/sleep.d/50modules | 2 | ||||
-rwxr-xr-x | pm/sleep.d/55battery | 2 | ||||
-rwxr-xr-x | pm/sleep.d/65alsa | 2 | ||||
-rwxr-xr-x | pm/sleep.d/90clock | 2 | ||||
-rwxr-xr-x | pm/sleep.d/94cpufreq | 2 | ||||
-rwxr-xr-x | pm/sleep.d/99video | 2 | ||||
-rwxr-xr-x | pm/sleep.d/zzz | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/pm/sleep.d/00clear b/pm/sleep.d/00clear index b96e0a7..b6260bd 100755 --- a/pm/sleep.d/00clear +++ b/pm/sleep.d/00clear @@ -1,6 +1,6 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" RETVAL=0 case "$1" in diff --git a/pm/sleep.d/00logging b/pm/sleep.d/00logging index 61285fe..7cba5e7 100755 --- a/pm/sleep.d/00logging +++ b/pm/sleep.d/00logging @@ -1,6 +1,6 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" case "$1" in hibernate|suspend) diff --git a/pm/sleep.d/10NetworkManager b/pm/sleep.d/10NetworkManager index 3e018ec..d1ad677 100755 --- a/pm/sleep.d/10NetworkManager +++ b/pm/sleep.d/10NetworkManager @@ -1,6 +1,6 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" command_exists dbus-send || exit 1 diff --git a/pm/sleep.d/20video b/pm/sleep.d/20video index 1beee57..faed5a9 100755 --- a/pm/sleep.d/20video +++ b/pm/sleep.d/20video @@ -7,7 +7,7 @@ # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" if ! command_exists vbetool; then vbe() { echo "vbetool not found" 1>&2; return 1; } diff --git a/pm/sleep.d/49bluetooth b/pm/sleep.d/49bluetooth index bab680a..0c72b8f 100755 --- a/pm/sleep.d/49bluetooth +++ b/pm/sleep.d/49bluetooth @@ -1,6 +1,6 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" [ -f /proc/acpi/ibm/bluetooth ] || exit 1 diff --git a/pm/sleep.d/50modules b/pm/sleep.d/50modules index 19707c1..946bcee 100755 --- a/pm/sleep.d/50modules +++ b/pm/sleep.d/50modules @@ -1,6 +1,6 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" suspend_modules() { diff --git a/pm/sleep.d/55battery b/pm/sleep.d/55battery index e5f3758..ec24ebe 100755 --- a/pm/sleep.d/55battery +++ b/pm/sleep.d/55battery @@ -1,6 +1,6 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" resume_batteries() { diff --git a/pm/sleep.d/65alsa b/pm/sleep.d/65alsa index 0762436..35da00d 100755 --- a/pm/sleep.d/65alsa +++ b/pm/sleep.d/65alsa @@ -1,6 +1,6 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" command_exists alsactl || exit 1 diff --git a/pm/sleep.d/90clock b/pm/sleep.d/90clock index 6e73714..34df62e 100755 --- a/pm/sleep.d/90clock +++ b/pm/sleep.d/90clock @@ -1,5 +1,5 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" NTPD_LOCK="/var/run/pm-utils/pm-ntpd.lock" diff --git a/pm/sleep.d/94cpufreq b/pm/sleep.d/94cpufreq index 165d671..a3db064 100755 --- a/pm/sleep.d/94cpufreq +++ b/pm/sleep.d/94cpufreq @@ -1,6 +1,6 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" [ -d /sys/devices/system/cpu/ ] || exit 1 diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video index 5a850ec..4bfdf83 100755 --- a/pm/sleep.d/99video +++ b/pm/sleep.d/99video @@ -7,7 +7,7 @@ # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" reset_brightness() { for bl in /sys/class/backlight/* ; do diff --git a/pm/sleep.d/zzz b/pm/sleep.d/zzz index a7ae472..202e3a0 100755 --- a/pm/sleep.d/zzz +++ b/pm/sleep.d/zzz @@ -1,5 +1,5 @@ #!/bin/sh -. /usr/lib/pm-utils/functions +. "${PM_FUNCTIONS}" [ -e "${INHIBIT}" ] && return 1 sync;sync;sync; case $1 in |