#!/bin/sh #------------------------------------------------------------------------------ # /usr/bin/hwsupp_status __FLI4LVER__ # # Creation: 10.10.2014 cspiess # Last Update: $Id$ #------------------------------------------------------------------------------ if [ -f /var/run/hwsupp.conf ] then . /var/run/hwsupp.conf format=" %-4s %-8s %-6s\n" printf "$format" "LED" "Typ" "Status" printf "----------------------------\n" [ 0$hwsupp_led_n -eq 0 ] || for i in `seq 1 $hwsupp_led_n` do eval type=\$hwsupp_led_${i} printf "$format" "$i" "$type" "$(/usr/bin/hwsupp_getled $i)" done fi