View Full Version : Aw, crud. Bash and ftp have gone bye-bye.
alfonzotan
03-04-2007, 07:46 PM
I've got an HR10-250 that was hacked (by me, without a script tool) about a year and a half ago. All smooth sailing until the DST change reared its ugly head and I had to upgrade from 3.1.5f to 6.3c. I did that yesterday, using the dreaded Slicer.
Yes, I know. The quick and easy path. I am suitably chagrined.
Everything worked great at first. No problems getting a boot in 6.3c, no operational issues, no problems telnetting or ftp-ing. Then I tried to extract with tserver/TyTool, and to no particular surprise on my part, it didn't work (I didn't expect it to, but figured I'd try anyway). Then began several iterations of installing, patching, trashing, and starting over with mfs_ftp (details here (http://www.dealdatabase.com/forum/showpost.php?p=277161&postcount=47)).
Finally I figured, eh, might as well reboot. Then my troubles began. No connection via Telnet for a Bash prompt. No FTP connection. At first I couldn't even get a Ping on the Tivo; one reboot later and I can at least get that far. I've got two good lights on the USB/Ethernet adapter.
I pulled the drive and checked around the usual directories, and all my hacks and hack directories are present, as far as I can tell. rc.sysinit.author and .profile are just the way I left them, but still, no joy at Telnet or FTP. The tivoapp patches appear to be fine, if the 30-second skip function is any indicator. The Tivo itself boots up and operates just fine, no GSOD when I started up after putting the drive back in.
Any thoughts/suggestions/recovery procedures/heckling out there? Thanks...
av8rdude
03-04-2007, 07:54 PM
Did you use ptvnet to upgrade the drive originally? I had the same problems and I know the solution if you used ptvnet.
If you did not use ptvnet...are you sure your bootpage parameters were set with "upgradesoftware=false"? If not the unit may have reinstalled a virgin copy of 3.1.5f after the second reboot. Look on the system info page for software version....
Scott
alfonzotan
03-04-2007, 08:58 PM
Nope, it's running 6.3c. I guess it's possible that it's a virgin 6.3c on a different partition, though. I'll pull the drive tomorrow and check (very dumb of me not to do that earlier, of course), but I think I've done enough damage for one day. I definitely had "no upgrades" set previously, and I didn't change anything on bootpage when/after I did the Slicer upgrade.
I didn't use ptvnet to do the original hack, that was all "by hand." But just for grins, what was the ptvnet solution?
av8rdude
03-04-2007, 10:16 PM
Well, the ptvnet script installs a bunch of flag files in the /init directory. And then the rc.sysinit.author file looks for the flags.....there is a flag for UPGRADE_OFF that the script fails to add.
But it sounds like none of this will apply to you. Good luck.
Scott
mr_zorg
03-05-2007, 04:41 PM
Finally I figured, eh, might as well reboot. Then my troubles began. No connection via Telnet for a Bash prompt. No FTP connection. At first I couldn't even get a Ping on the Tivo; one reboot later and I can at least get that far. I've got two good lights on the USB/Ethernet adapter.
I pulled the drive and checked around the usual directories, and all my hacks and hack directories are present, as far as I can tell. rc.sysinit.author and .profile are just the way I left them, but still, no joy at Telnet or FTP. The tivoapp patches appear to be fine, if the 30-second skip function is any indicator. The Tivo itself boots up and operates just fine, no GSOD when I started up after putting the drive back in.
Any thoughts/suggestions/recovery procedures/heckling out there? Thanks...
The 6.x releases have a built in firewall which blocks incoming connections on most ports. This is why it appears your hacks are there, but you can't connect. Copy the /sbin/iptables file to a backup file, create a new one containing just:
#!/bin/bash
exit 0
and make it executable (chmod +x /sbin/iptables) and reboot. You should be good to go after that.
alfonzotan
03-05-2007, 05:56 PM
Thanks, but that's not it. The /sbin/iptables file in mnt4 (which per bootpage is my root) has that exact text in it already, and it's the right chmod (probably bad syntax there, but hopefully the meaning gets across).
PlainBill
03-05-2007, 06:46 PM
It is at this point where a serial cable (http://www.dealdatabase.com/forum/showthread.php?p=232686&postcount=5) is invaluable. Trying to fix a network problem without one has been compared unfavorably to trying to find a black cat in an unlit room - while the cat hides in the closet of the next room.
PlainBill
alfonzotan
03-05-2007, 07:03 PM
Okay, I'm back on track. Turned out the rc.sysinit.author file was dorked up by the installer. I've got bash again, and though my /var/hack directory was wiped in the last reboot, I had squirreled away a copy of tivoftpd in a safe place, so tonight's entertainment will include rebuilding many hacks (this time outside of /var).
Still, much better than no contact at all. And yes, it serves me right for trusting a script program...
(I was really hoping to get this figured out before PlainBill thwacked me--but I was too slow, as usual...)
alfonzotan
03-05-2007, 10:10 PM
Hmm. Interesting.
Bash and FTP are back, and most stuff is working (mfs_ftp, which started this whole mess, being the exception, but I haven't started the patch procedures on that one yet). ciphercheck tells me that encryption is enabled, even after I double-checked the tivoapp Nocso patch, and the "Encrypted" column is marked "Yes" for all the shows--even the ones that were recorded long before the latest debacle (CSO Set is marked "No" on everything).
Anybody think the kernel needs re-hacking?
alfonzotan
03-06-2007, 06:52 PM
Aha--me being stupid, take 93. Permissions fargled on ciphercheck executable (and many others, as it turned out). Fixed with chmod 755, and everything's groovy. mfs_ftp is even working again, so me happy, Tivo happy, everybody happy.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.