Page 29 of 29

Re: Hacking TV over Hotel mode (most C series models)

Posted: Fri Feb 13, 2015 1:48 pm
by beatfreak
this is the post where the wiki article has been created from.
you mean point 5 there or in first post of topic?

Re: Hacking TV over Hotel mode (most C series models)

Posted: Sat Apr 11, 2015 6:29 pm
by tempinbox
Hi is possible to modify the file usb_cmd created in mtd_rwarea from link0 after the hack?
can i simply re-edit it with notepad++ and reboot tv to apply changes or i lost my hack?I have done hack and i've full access to my tv run.sh is executed from usb.
i want to modify my usb_cmd according to here viewtopic.php?f=13&t=1076#p9426

Re: Hacking TV over Hotel mode (most C series models)

Posted: Sat Apr 11, 2015 6:33 pm
by juusso
Do not ever edit scripts with notepad.

Re: Hacking TV over Hotel mode (most C series models)

Posted: Sat Apr 11, 2015 6:43 pm
by tempinbox
juuso wrote:Do not ever edit scripts with notepad.
Sorry typo error i mean notepad++.
So its possible or not?

Re: Hacking TV over Hotel mode (most C series models)

Posted: Sat Apr 11, 2015 6:45 pm
by juusso
I`m not vell with that hack, but i think everything should work after modiffication. If not, you always can re-hack ;)

Re: Hacking TV over Hotel mode (most C series models)

Posted: Mon Apr 13, 2015 6:21 pm
by tempinbox
juuso wrote:I`m not vell with that hack, but i think everything should work after modiffication. If not, you always can re-hack ;)
i try but the results was that tv can't recognize the usb connected to tv so i've to rehack.
i don't understand if the error is due to the wrong usb_cmd maybe i've to ask @mamaich but it's no longer on samygo forum.
juuso do you know how to create a init script for telnet? i'm thinking to start the telnet daemon from busybox present in SamyGO/bin directory but i've no idea in how to do it.

Re: Hacking TV over Hotel mode (most C series models)

Posted: Mon Apr 13, 2015 7:28 pm
by beatfreak
so as far as i understand you want to have the modified version of usb_cmd to have telnet enabled?
do you plan on using SamyGO-Extensions? If yes you get a ssh-daemon with it which is more comfortable than telnet.
as you still want to look for a run.sh file on your usb-drive, why don't you put the telnet part of mamaich's script into your run.sh on usb-drive this way the risk of breaking something is way smaller

Re: Hacking TV over Hotel mode (most C series models)

Posted: Mon Apr 13, 2015 8:00 pm
by tempinbox
beatfreak wrote:so as far as i understand you want to have the modified version of usb_cmd to have telnet enabled?
do you plan on using SamyGO-Extensions? If yes you get a ssh-daemon with it which is more comfortable than telnet.
as you still want to look for a run.sh file on your usb-drive, why don't you put the telnet part of mamaich's script into your run.sh on usb-drive this way the risk of breaking something is way smaller
i want telnet because is more simple to use for me instead of ssh, telnet don't need login every time i launch it.
i stilll have the run.sh that launch telnet and ftp after tv poweron.
my goal was to create one step usb hack.

Re: Hacking TV over Hotel mode (most C series models)

Posted: Tue Apr 14, 2015 8:15 am
by juusso
take telnet script from any other series and adapt for your needs. Example:

Code: Select all

#!/mnt/bin/busybox sh
#
# ? Copyright 1996-2013, SamyGO
#
#
. /dtv/SGO.env

stop_bootloop()
{
# emergency skript exit to prevent boot loop
      for USB in ${1:- \
         /dtv/usb/sd* } ; do
         echo "checking $USB"
         sleep 1
         if [ -e $USB/STOP_TELNET ]; then
            "STOP_TELNET found. Script exit..."
            exit 1
         fi
      done
}

case $1 in 
	start)
	stop_bootloop # in testing phase. Just for protection.

	# telnet
	$SYSROOT/bin/busybox2 telnetd -p 23 -l $SYSROOT/bin/ash &
	sync

	;;
	stop)
	;;
	status)
	;;
	*)
	echo "Usage: $0 {start|stop|status}" 1>&2
	exit 0
	;;
esac