Re: 22F5400 no telnet no VUSB and no remote working.
Posted: Sun Oct 02, 2016 11:19 am
script is done with notepad ++.
attached.
attached.
Samsung TV Firmware on the GO
https://forum.samygo.tv/
Code: Select all
chmod 755 /mnt/etc/init.d/*.init
Code: Select all
sh -x /mnt/etc/init.d/9999_9999_deleteLogs.init start
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#>
Code: Select all
# . /dtv/SGO.env
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#>
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
Really looks like bad linefeeds imho, "using Notepad++" is not enough, you also have to set linefeeds to unix format into menumiazza wrote:Code: Select all
.: line 1: can't open '/dtv/SGO.env
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
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#>