You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
378 B
20 lines
378 B
#!/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
|
|
|