#!/bin/sh . /etc/init.d/globals case $1 in stop) TIMER="/tmp/.timer" test -e $TIMER || exit 0 if type shutdown_helper > /dev/null; then # send current time, wakeup time, led and bright settings to frontpanel PARAM=`cat $TIMER` SHOWINFO "calling 'shutdown_helper "$PARAM"'" shutdown_helper $PARAM fi ;; *) echo "[$BASENAME] Usage: $0 {stop}" ;; esac