#!/bin/sh
progdir=$(dirname "$0")/gmu
cd $progdir
HOME=$progdir
cp /sys/class/backlight/backlight.2/brightness /tmp/brightness.txt
SDL_NOMOUSE=1 ./gmu.bin -c gmu.rg35xx.conf &> log.txt
cat /tmp/brightness.txt > /sys/class/backlight/backlight.2/brightness
rm /tmp/brightness.txt
sync
