#!/bin/bash
echo $(( $1*7+323 )) > /sys/class/backlight/pwm-backlight.0/brightness

if [ $2 != 0 ] ; then
    echo $(( $2*7+323 )) > /sys/class/backlight/pwm-backlight.1/brightness
else
    echo 0 > /sys/class/backlight/pwm-backlight.1/brightness
fi
