diff options
-rwxr-xr-x | pm/sleep.d/20video | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pm/sleep.d/20video b/pm/sleep.d/20video index faed5a9..709226c 100755 --- a/pm/sleep.d/20video +++ b/pm/sleep.d/20video @@ -9,16 +9,16 @@ . "${PM_FUNCTIONS}" -if ! command_exists vbetool; then - vbe() { echo "vbetool not found" 1>&2; return 1; } -else +if command_exists vbetool; then vbe() { vbetool "$@"; } +else + vbe() { echo "vbetool not found" 1>&2; return 1; } fi -if ! command_exists radeontool; then - radeon() { echo "radeontool not found" 1>&2; return 1; } -else +if command_exists radeontool; then radeon() { radeontool "$@"; } +else + radeon() { echo "radeontool not found" 1>&2; return 1; } fi suspend_video() |