X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-state%2Frc.pandora-state;h=149989efe3a826f4d9310edf83f5d9335b754f01;hp=a76329be5453f16b49b97a8dcafeff5a1339b475;hb=fd4f966e5bd4d94acd78b15e2ed941f42d710782;hpb=27d1592ffdfdd0cb45d750c4d276afb7ea95b7ed;ds=inline diff --git a/recipes/pandora-system/pandora-state/rc.pandora-state b/recipes/pandora-system/pandora-state/rc.pandora-state index a76329b..149989e 100644 --- a/recipes/pandora-system/pandora-state/rc.pandora-state +++ b/recipes/pandora-system/pandora-state/rc.pandora-state @@ -45,9 +45,11 @@ d_start() { fi cat /etc/pandora/conf/dirty_expire_centisecs > /proc/sys/vm/dirty_expire_centisecs cat /etc/pandora/conf/gamma.state > $SYSFS_GAMMA - dssgamma=$(cat /etc/pandora/conf/dssgamma.state) - dssgamma2=$(echo "scale=2;$dssgamma / 100" | bc) - sudo /usr/pandora/scripts/op_gamma.sh $dssgamma2 + if [ -f /etc/pandora/conf/dssgamma.state ]; then + dssgamma=$(cat /etc/pandora/conf/dssgamma.state) + dssgamma2=$(echo "scale=2;$dssgamma / 100" | bc) + /usr/pandora/scripts/op_gamma.sh $dssgamma2 + fi if [ -f /etc/pandora/conf/filter.state ]; then filter=$(cat /etc/pandora/conf/filter.state) /usr/pandora/scripts/op_videofir.sh $filter