22F5400 no telnet no VUSB and no remote working.

Here for general support for F series TVs, request and problem solve area.

miazza
SamyGO Project Donor
Posts: 658
Joined: Wed Apr 03, 2013 6:10 pm

Re: 22F5400 no telnet no VUSB and no remote working.

Post by miazza » Sun Oct 02, 2016 11:19 am

script is done with notepad ++.
attached.
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.

User avatar
juusso
SamyGO Moderator
Posts: 9759
Joined: Sun Mar 07, 2010 6:20 pm

Re: 22F5400 no telnet no VUSB and no remote working.

Post by juusso » Sun Oct 02, 2016 1:20 pm

Now place it inside /mnt/etc/init.d/ (overwrite your old script). Do sync.
chmod it

Code: Select all

chmod 755 /mnt/etc/init.d/*.init
and... maybe try to run with debug enabled:

Code: Select all

sh -x /mnt/etc/init.d/9999_9999_deleteLogs.init start
Give here the output...

p.s.s.. just came to my mind... Would be better to rename it to something like 01_01_ (or similar -need to think what number is better) to delete previuous log and leave logs of current TV run? At least for now check it "as is".
You do not have the required permissions to view the files attached to this post.
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

miazza
SamyGO Project Donor
Posts: 658
Joined: Wed Apr 03, 2013 6:10 pm

Re: 22F5400 no telnet no VUSB and no remote working.

Post by miazza » Sun Oct 02, 2016 4:05 pm

Code: Select all

VDLinux#> sh -x /mnt/etc/init.d/9999_9999_deleteLogs.init start
+ . /dtv/SGO.env
'mnt/etc/init.d/9999_9999_deleteLogs.init: .: line 1: can't open '/dtv/SGO.env
VDLinux#>
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.

User avatar
juusso
SamyGO Moderator
Posts: 9759
Joined: Sun Mar 07, 2010 6:20 pm

Re: 22F5400 no telnet no VUSB and no remote working.

Post by juusso » Sun Oct 02, 2016 6:19 pm

Remove or comment out this line from script and try again

Code: Select all

# . /dtv/SGO.env
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

miazza
SamyGO Project Donor
Posts: 658
Joined: Wed Apr 03, 2013 6:10 pm

Re: 22F5400 no telnet no VUSB and no remote working.

Post by miazza » Tue Oct 04, 2016 6:32 am

Code: Select all

VDLinux#> sh -x /mnt/etc/init.d/99_99_deleteLogs.init start
+
: not foundit.d/99_99_deleteLogs.init: line 1:
/mnt/etc/init.d/99_99_deleteLogs.init: line 8: syntax error: unexpected word (expecting "in")
VDLinux#>
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.

User avatar
juusso
SamyGO Moderator
Posts: 9759
Joined: Sun Mar 07, 2010 6:20 pm

Re: 22F5400 no telnet no VUSB and no remote working.

Post by juusso » Tue Oct 04, 2016 8:55 am

very and very weird errors! Indeed must think how to do some work arround...:
replace the loop (everything between Start) and ;; to :

Code: Select all

maxsize=120000 # adjust filesize here
file = "/mnt/samygo.log"
         actualsize=$(wc -c <"$file")
            if [ $actualsize -ge $maxsize ]; then
               rm -f $file
            fi
file = "/mnt/sam.log"
         actualsize=$(wc -c <"$file")
            if [ $actualsize -ge $maxsize ]; then
               rm -f $file
            fi
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

zoelechat
SamyGO Moderator
Posts: 7890
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: 22F5400 no telnet no VUSB and no remote working.

Post by zoelechat » Tue Oct 04, 2016 9:16 am

miazza wrote:

Code: Select all

 .: line 1: can't open '/dtv/SGO.env
Really looks like bad linefeeds imho, "using Notepad++" is not enough, you also have to set linefeeds to unix format into menu :)
I do NOT receive any PM. Please use forum.

User avatar
juusso
SamyGO Moderator
Posts: 9759
Joined: Sun Mar 07, 2010 6:20 pm

Re: 22F5400 no telnet no VUSB and no remote working.

Post by juusso » Tue Oct 04, 2016 9:33 am

no need for sgo.env, we dont use any global variables here. We just delete two certain files.
However, i`m in doubts where is problem with "in" (script worked on my "test" setup w/o any problem).
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

miazza
SamyGO Project Donor
Posts: 658
Joined: Wed Apr 03, 2013 6:10 pm

Re: 22F5400 no telnet no VUSB and no remote working.

Post by miazza » Tue Oct 04, 2016 6:26 pm

The script now look like that:

Code: Select all

#!/bin/sh
#
# ? Copyright 1996-2016, SamyGO
#
# 
# . /dtv/SGO.env

case $1 in
   start)
      maxsize=120000 # adjust filesize here
file = "/mnt/samygo.log"
         actualsize=$(wc -c <"$file")
            if [ $actualsize -ge $maxsize ]; then
               rm -f $file
            fi
file = "/mnt/sam.log"
         actualsize=$(wc -c <"$file")
            if [ $actualsize -ge $maxsize ]; then
               rm -f $file
            fi
   ;;
   *)
   echo "Usage: $0 {start}" 1>&2
   exit 0
   ;;
esac
The error is:

Code: Select all

VDLinux#> sh -x /mnt/etc/init.d/99_99_deleteLogs.init start
+
: not foundit.d/99_99_deleteLogs.init: line 1:
/mnt/etc/init.d/99_99_deleteLogs.init: line 8: syntax error: unexpected word (expecting "in")
VDLinux#>

AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.

User avatar
juusso
SamyGO Moderator
Posts: 9759
Joined: Sun Mar 07, 2010 6:20 pm

Re: 22F5400 no telnet no VUSB and no remote working.

Post by juusso » Tue Oct 04, 2016 7:36 pm

And other scripts are ok? weird. It complains about basic structure of init script. Don`t get where is the problem.
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

Post Reply

Return to “[F] Support”