#!/bin/sh

# Get the current value
CURRENT_VALUE=`cat $HOME/Choices/backlight`
MAX_VALUE=6

#If it is not already at the max value, increment it one.
if [ $CURRENT_VALUE = $MAX_VALUE ]; then
NEW_VALUE=$(($CURRENT_VALUE))
else
NEW_VALUE=$(($CURRENT_VALUE+1))
fi

setfl $NEW_VALUE
echo $NEW_VALUE > $HOME/Choices/backlight
