#!/bin/bash
# This script is used to control the backlight of the screen

. get_root

dev="/sys/class/backlight/intel_backlight"

if [ $# -eq 0 ]; then
	echo "`< "$dev/brightness"` / `< "$dev/max_brightness"`"
else
	echo "$1" > "$dev/brightness"
fi

