#!/bin/sh #------------------------------------------------------------------------------ # /usr/bin/hwsupp_status __FLI4LVER__ # # Creation: 10.10.2014 cspiess # Last Update: $Id$ #------------------------------------------------------------------------------ timer=$(grep -c "\[timer\]" /var/run/hwsuppd/hwsupp-led$1/trigger) if [ $timer -eq 0 ] then brightness=$(cat /var/run/hwsuppd/hwsupp-led$1/brightness) if [ 0$brightness -eq 0 ] then echo "off" else echo "on" fi else echo "blink" fi