3 . /usr/pandora/scripts/op_common.sh
5 if [ ! -e "$SYSFS_DSS_GAMMA" ]; then
6 echo "Control file is missing, might be incompatible kernel"
12 if [ "$gamma" = "0" ]; then
13 # set user default gamma
15 if [ -f /etc/pandora/conf/dssgamma.state ]; then
16 dssgamma=$(cat /etc/pandora/conf/dssgamma.state)
17 dssgamma=$(echo "scale=2;$dssgamma / 100" | bc)
18 if [ -n "$dssgamma" ]; then
24 if [ "$gamma" = "1" -o "$gamma" = "1.00" ]; then
26 echo 0 > $SYSFS_DSS_GAMMA
30 if [ "`which op_gammatable`" = "" ]; then
31 echo "op_gammatable tool required"
35 # just forward args to op_gammatable
36 op_gammatable $gamma > $SYSFS_DSS_GAMMA