Fix error when calling op_bright_down.sh with brightness 0
authorAlec Moskvin <alecm@gmx.com>
Sun, 6 Apr 2014 18:59:01 +0000 (14:59 -0400)
committerAlec Moskvin <alecm@gmx.com>
Sun, 6 Apr 2014 18:59:01 +0000 (14:59 -0400)
Also change to /bin/sh

recipes/pandora-system/pandora-scripts/op_bright_down.sh
recipes/pandora-system/pandora-scripts/op_bright_up.sh

index ca66d64..964240f 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 . /usr/pandora/scripts/op_paths.sh
 
@@ -11,7 +11,7 @@ elif [ "$cur" -gt "20" ]; then
    new=$(($cur-5))
 elif [ "$cur" -gt "5" ]; then 
    new=$(($cur-3))
-elif [ "$cur" -gt "0" ]; then 
+elif [ "$cur" -ge "0" ]; then
    new=$(($cur-1))
 fi