#!/bin/sh

for dev in /sys/class/backlight/* ; do
	cd $dev
	echo $(( $(cat max_brightness) / 2)) > brightness
done