#!/bin/sh # # start/stop luminous setup # # This only sets the permissions on the brightness case $1 in start) chmod 666 /sys/class/backlight/*/brightness ;; stop) chmod 644 /sys/class/backlight/*/brightness ;; *) printf "usage: $0 [start|stop]\n" ;; esac