FOR OTHER MODELS CHECK OTHER POSTS !!!!!!
I wanted to make as little changes to original SamyGO files as possible. Therefore (whenever it was possible) I have put most of my code in seperate files (rcEXT, rc.fix_telnetd, etc.). However probably it could be simplified and integrated directly with existing files (/dtv/.ashrc or /dtv/SGO.env). In order to make telnet working correctly (full bash history across reconnects and restarts, no more need to type . /dtv/SGO.env to have everything set up). You have to create following files:
$SYSROOT/rcEXT:
Code: Select all
#!/bin/sh
source /dtv/SGO.env
#echo "alias sgopwd='cd $1'" >> /dtv/SGO.env
echo "#!/dtv/network_opt/sh" > /dtv/sgoshfix
echo ". /dtv/SGO.env" >> /dtv/sgoshfix
echo "export HOME=\"$1\"" >> /dtv/sgoshfix
echo "export TERMINFO='$1/etc/terminfo'" >> /dtv/sgoshfix
echo "export TERM='xterm-color'" >> /dtv/sgoshfix
echo "export FRAMEBUFFER='/dev/sam/fb0'" >> /dtv/sgoshfix
echo "export LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH\"" >> /dtv/sgoshfix
echo "export PATH=\"$PATH\"" >> /dtv/sgoshfix
echo "export SYSROOT=\"$SYSROOT\"" >> /dtv/sgoshfix
echo "export PS1='\u@tv:\w \\$ '" >> /dtv/sgoshfix
chmod +x /dtv/sgoshfix
ln -s "$SYSROOT/opt/privateer/usr/bin/" /dtv/bin
$1/etc/rc.fix_telnetd&
Code: Select all
#!/bin/sh
killall telnetd
. /dtv/sgoshfix
cd
telnetd -l /dtv/network_opt/sh
Code: Select all
chmod +x $SYSROOT/rcEXT
chmod +x $SYSROOT/etc/rc.fix_telnetd
Code: Select all
$1/rcEXT "$1"
Code: Select all
echo "export PS1='# '" >> /mtd_rwarea/profile
Code: Select all
echo "PS1='\u@tv:\w \# '" >> /mtd_rwarea/profile
echo -e "ENV=/dtv/.ashrc\nexport ENV\n" >> /mtd_rwarea/profile
echo ". /dtv/sgoshfix" >> /mtd_rwarea/profile
mount -o bind /dtv/network_opt/sh /bin/sh
To get SCP working we just need to copy patched dropbear binary (attached in archive) to:
Code: Select all
$SYSROOT/opt/privateer/usr/sbin/dropbear
Code: Select all
/opt/privateer/usr/bin/scp