#!/bin/sh # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root sudo gainroot <$sysfile $value #try to kill also fading effect (newer kernels only) value=$((value+32768)) echo >$sysfile $value