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.
28 lines
579 B
28 lines
579 B
#!/bin/sh
|
|
|
|
. /etc/profile
|
|
. /etc/init.d/functions
|
|
. /etc/init.d/globals
|
|
|
|
SHOWINFO "start"
|
|
|
|
if [ -e /tmp/.flash.start ]; then
|
|
lcd4l_cmd=stop
|
|
lcd4l_msg="Updating STB ..."
|
|
else
|
|
lcd4l_cmd=off
|
|
lcd4l_msg="Shutdown STB ..."
|
|
fi
|
|
|
|
# first stopping lcd4linux
|
|
test -d /tmp/lcd/ && echo ${lcd4l_msg} > /tmp/lcd/goodbye
|
|
service lcd4linux ${lcd4l_cmd}
|
|
|
|
# stopping services and daemons in order of the symlink names
|
|
LOGINFO "run initscripts stop ..."
|
|
run_initscripts stop
|
|
|
|
SHOWINFO "done"
|
|
|
|
# send current time, wakeup time, led and bright settings to frontpanel
|
|
service custom-poweroff stop
|
|
|