*very dangerous stuff, easy brick on any typo*
Here is the report of the first part I have done:
starting samygo at startup not with Smart-HUB Ticker-Autost
- I have the SamyGO scripts on my usb-stick on /dtv/usb/sda1/SamyGO and I do not have a working editor on the TV, I do not know why, so I always get and put files with ftp. Take care: a wrong start.sh may brick.
- disable SamyGO in Smart-HUB Ticker-Autostart
- start SamyGO
- enter the TV from Linux maschine with: nc 192.168.178.45 1023
- cd /mtd_exe
- cat rc.local
- from Linux maschine ftp on TV and get this rc.local
- on Linux maschine: head -11 rc.local
you should see this:
Code: Select all
#!/bin/sh
# FastLogo
#Run FastLogo
source /mtd_exe/Fastlogo.sh
if [ -e /mtd_rwarea/start.sh ]; then
echo "user start.sh found!"
/mtd_rwarea/start.sh
else
- on Linux maschine: cp rc.local start.sh
- edit start.sh with:
delete:
Code: Select all
# FastLogo
#Run FastLogo
source /mtd_exe/Fastlogo.sh
if [ -e /mtd_rwarea/start.sh ]; then
echo "user start.sh found!"
/mtd_rwarea/start.sh
else
add this at the end of the script before
./exeDSP and remove the fi at the end:
Code: Select all
#RR:
if [ -e /mtd_rwarea/samygo_autostart_after_sleep.sh ]; then
/mtd_rwarea/samygo_autostart_after_sleep.sh &
fi
# end RR
- check, if it is OK :
diff rc.local start.sh
Code: Select all
3,10c3
< # FastLogo
< #Run FastLogo
< source /mtd_exe/Fastlogo.sh
<
< if [ -e /mtd_rwarea/start.sh ]; then
< echo "user start.sh found!"
< /mtd_rwarea/start.sh
< else
---
>
55,56c48
< #LD_DEBUG=statistics LD_BIND_NOW=t /mtd_exe/exeDSP
< ./exeDSP
---
> #LD_DEBUG=statistics LD_BIND_NOW=t /mtd_exe/exeDSP
57a50,52
> #RR:
> if [ -e /mtd_rwarea/samygo_autostart.sh ]; then
> /mtd_rwarea/samygo_autostart.sh &
58a54,58
> # end RR
>
> ./exeDSP
>
>
check again: tail -15 start.sh
Code: Select all
insmod samdrv.ko
#LD_DEBUG=statistics LD_BIND_NOW=t /mtd_exe/exeDSP
#RR:
if [ -e /mtd_rwarea/samygo_autostart.sh ]; then
/mtd_rwarea/samygo_autostart.sh &
fi
# end RR
./exeDSP
- generate the file samygo_autostart.sh with this content (maybe start first with 5 min sleep and not with 1 min):
Code: Select all
#!/bin/sh
# 5 min this works, but is too long
# sleep 300
# 2 min this works, but try shorter
# sleep 120
# 1 min, let's try
sleep 60
if [ -e /dtv/usb/sda1/SamyGO/rcSGO ]; then
/dtv/usb/sda1/SamyGO/rcSGO
fi
- with ftp put
start.sh to /mtd_rwarea
and
samygo_autostart.sh also to /mtd_rwarea
- from nc session still ongoing on TV check if
/mtd_rwarea/start.sh and /mtd_rwarea/samygo_autostart.sh are executable, if not, make them with
chmod 755 start.sh samygo_autostart.sh
- exit nc session
- switch TV off
- switch TV on
- verify, that samygo was autorun at startup of TV
Can anyone confirm this is working also on other D-models?
The main idea behind this is, to start
/mtd_rwarea/samygo_autostart.sh &
at boot with "&" behind. When the sleep is running in this script ./exeDSP has started normal mode of the TV and when the sleep is finished after 1 min samygo is started. Any comments on this?
Only with this autostart of samygo I could do the next step: solve the problem of not working scheduled recording on nfs-share with WLAN after wakeup from standby.