6 changed files with 46 additions and 22 deletions
@ -0,0 +1,20 @@ |
|||||
|
#!/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 |
@ -0,0 +1,20 @@ |
|||||
|
#!/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 |
Loading…
Reference in new issue