1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Enhance Your Hacked Tivo With This Script

Discussion in 'TiVo Underground' started by rbautch, Jul 21, 2005.

  1. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    The entires for version 1 and 2 are different. I modified the enhancement script to insert the lines for version 2 using sed. If you search the script for "sed", you can see what's going on.
     
  2. bigrig

    bigrig ∞ ↔ ∞ ↔ ∞ ↔ ∞ ↔ ∞

    452
    0
    Jul 1, 2004
    Houston, TX
    mmmkay, here's what my .profile has now:
    Code:
    export PATH=$PATH:/busybox########################################:/enhancements
    TERM=xterm
    alias rw='echo "mounting read write"; mount -o remount,rw /'
    alias ro='echo "mounting read only"; mount -o remount,ro /'
    alias twp='echo "starting Tivowebplus"; /enhancements/TWPrunc.sh'
    alias ffind='find / -name'
    alias author='joe /etc/rc.d/rc.sysinit.author'
    alias root='joe /var/spool/cron/crontabs/root'
    alias twprs='echo "restarting Tivowebplus"; sh /enhancements/TWPrestart.sh'
    #########################################
    TERM=xterm
    
    #########################################
    export PS1="\[\e[33;1m\]HDTivo\[\e[36;1m\]-\[\e[31;1m\]T\[\e[32;1m\]i\[\e[33;1m\]V\[\e[34;1m\]o\[\e[0m\]# \[\e[0m\]"
    What's all the stuff at the end? Should my .profile look more like this:
    Code:
    export PATH=$PATH:/utils:/bin:/sbin:/tvbin:/tivobin:/busybox:/enhancements
    ########################################
    TERM=xterm
    alias rw='echo "mounting read write"; mount -o remount,rw /'
    alias ro='echo "mounting read only"; mount -o remount,ro /'
    alias twp='echo "starting Tivowebplus"; /enhancements/TWPrunc.sh'
    alias ffind='find / -name'
    alias author='joe /etc/rc.d/rc.sysinit.author'
    alias root='joe /var/spool/cron/crontabs/root'
    alias twprs='echo "restarting Tivowebplus"; sh /enhancements/TWPrestart.sh'
    #########################################
    TERM=xterm
    
    #########################################
    export PS1="\[\e[33;1m\]HDTivo\[\e[36;1m\]-\[\e[31;1m\]T\[\e[32;1m\]i\[\e[33;1m\]V\[\e[34;1m\]o\[\e[0m\]# \[\e[0m\]"
    Thanks!
     
  3. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    The stuff at the end is the color bash prompt. Your edit looks correct.
     
  4. BeanCounter1

    BeanCounter1 New Member

    44
    0
    Jan 3, 2005
    I have edited my .profile with joe to include the following

    export PS1='[Tivo1-bash] \w # '​

    This is basically the original prompt plus the current path. I saved the edit and logged out, then telneted back in, only to find the original prompt from the enhancement script. I then checked my syntax by entering the command at the bash prompt, and my "custom" bash worked fine until I logged out. When I logged back in, it was back to the original.

    It seems as if there is another file that is reseting this after the .profile is processed, but I've searched for "PS1" and the only other file mentioned was "/.profile" which I also edited.

    Any ideas? There's got to be a way to do this without having to uninstall/reinstall.
     
  5. bigrig

    bigrig ∞ ↔ ∞ ↔ ∞ ↔ ∞ ↔ ∞

    452
    0
    Jul 1, 2004
    Houston, TX
    You're mounting the drive as read/write, correct?

    I'm not real comfortable with joe/vi, so what I do is delete the .profile on the Tivo, edit the file on the PC, transfer over as profile and rename to .profile.

    Matt
     
  6. Adam1115

    Adam1115 20,000!!! TCF Club

    27,665
    41
    Dec 15, 2003
    Denver ish
    I've got to admit, this script is great. At some point I lost my hacks directory and never got around to redoing it.. I decided to do this instead and wow, 60 seconds and I'm done through telnet. Nice job...

    I should add. I keep reading people struggleing with uploads and having to use dos2unix or whatever. I've NEVER had to do this. If you're using the dos FTP client (which you should be, don't use windows explorer), just type "type binary" before you upload the files and it will upload them correctly. No DOS2Unix or anything else. You should always use binary uploads when uploading to a Linux box.
     
  7. BeanCounter1

    BeanCounter1 New Member

    44
    0
    Jan 3, 2005
    I enabled read/write, edited with Joe, and resaved. I wouldn't think it would matter which method I use, especially after a reboot.
     
  8. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Is it being set in another line in the same .profile? Are you sure you saved the file? Try to view it with vi after you change it.
     
  9. BeanCounter1

    BeanCounter1 New Member

    44
    0
    Jan 3, 2005
    I only found the PS1 setting in the file once, but there were a lot of other duplicate lines. I never really paid that much attention to them before as I was focused on PS1.

    Below is the contents of ".profile". Can I just delete the duplicate lines. I would propose moving the lines starting with "export PS1" and "alias speed" (blue) immediately above the first "###" line, and deleting the lines after "###" (red). It looks like they were simply duplicated when I reran the Enhancement script. Other than this, I don't see any other duplicates that would cause my PS1 statement not to work.

    Thoughts?

    export TIVO_ROOT=
    export TIVO_REMOTE=TIVO
    export MFS_DEVICE=/dev/hda10
    TERM=xterm
    alias rw='echo "mounting read write"; mount -o remount,rw /'
    alias ro='echo "mounting read only"; mount -o remount,ro /'
    alias twp='echo "starting Tivowebplus"; /enhancements/TWPrunc.sh'
    alias ffind='find / -name'
    alias author='joe /etc/rc.d/rc.sysinit.author'
    alias root='joe /var/spool/cron/crontabs/root'
    alias twprs='echo "restarting Tivowebplus"; sh /enhancements/TWPrestart.sh'
    #########################################
    TERM=xterm

    #########################################
    export PS1='[Tivo1-bash] \w # '
    alias speed="/busybox/netperf -H 10.1.204 -C -c -- -S 65536 -s 65536"

    ########################################
    TERM=xterm
    alias rw='echo "mounting read write"; mount -o remount,rw /'
    alias ro='echo "mounting read only"; mount -o remount,ro /'
    alias twp='echo "starting Tivowebplus"; /enhancements/TWPrunc.sh'
    alias ffind='find / -name'
    alias author='joe /etc/rc.d/rc.sysinit.author'
    alias root='joe /var/spool/cron/crontabs/root'
    alias twprs='echo "restarting Tivowebplus"; sh /enhancements/TWPrestart.sh'
    #########################################
    TERM=xterm

    #########################################
     
  10. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    You should delete all the duplicates.
     
  11. Adam1115

    Adam1115 20,000!!! TCF Club

    27,665
    41
    Dec 15, 2003
    Denver ish
    Except... I lost MRV after 2 days. Says "DVR 600" instead of the old name. WTF? I guess I'll have to figure out what happened and reset up MRV manually.
     
  12. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Try using the mrv_name module in Tivowebplus to reset the name.
     
  13. DapperDanPomade

    DapperDanPomade New Member

    1
    0
    Apr 23, 2006
    Santa Clara, CA
    Congrats! At last I've found someone who's actually done it! I've been scouring the forums looking for proof that it can be done and for some info about how to get a hacked prom. Does anyone have info on where I can get one?
     
  14. diamondsw

    diamondsw New Member

    75
    0
    Sep 16, 2004
    Chicago
    My apologies for the stupid question (as I'm sure it is answered somewhere in the 50-odd pages of this thread), but is there any way to use the sc62 patches to kill the ads (yellow star), but keep the Tivolution? I actually find that interesting and useful - much more so than the lame "Tivo Suggestions".
     
  15. JWThiers

    JWThiers Smartypants

    2,611
    0
    Apr 12, 2005
    Cocoa, Florida
    I think that that is content that tivo pushed to you and if they ain't pushing you can't pull.
     
  16. tivo40gb

    tivo40gb New Member

    1
    0
    Apr 24, 2006
    I need to keep the recordrings on my 6.2 (some of the wife's stuff).

    I bought the LBA48 and have created the tools disk. If I already have a 6.2 image on my drive (from directv) there is no need to buy the image disk right?

    I am concerned that there is a difference between the PTVnet instantcake image and the already on my tivo.
     
  17. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Yes, run sc62remove.tcl.
     
  18. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Whatever differences there are won't matter, but it's always nice to have an extra working drive in case you screw things up. If you know what you're doing, you can create an image from your existing drive, rename it to 000001, and put in on the tools disk.
     
  19. Xtra7973

    Xtra7973 Member

    69
    0
    Apr 5, 2006
    Philadelphia
    Ok I have a question. I get up at 4:30 am EST for work and leave the house at 6:00 am. My problem is my cron reboots my tivo monday 5:25 am EST while im watching the news, very annoying. From my understanding cron goes by GMT and since im EST it should reboot with the original settings at 4:25 am EST but it does not.

    So to fix this in crontabs all I should have to change is
    Code:
    25 9 * * 1,4 echo "`date` SCHEDULED REBOOT"; reboot >> /var/log/cronlog-main
    To this
    Code:
    25 8 * * 1,4 echo "`date` SCHEDULED REBOOT"; reboot >> /var/log/cronlog-main
    And also the reboot messages from this
    Code:
    5 9 * * 1,4 cd /var/hack/bin; echo 'SCHEDULED REBOOT IN 20 MINUTES...' | /var/hack/bin/out2osd -c1 -fblack1 -byellow -d3
    15 9 * * 1,4 cd /var/hack/bin; echo 'SCHEDULED REBOOT IN 10 MINUTES...' | /var/hack/bin/out2osd -c1 -fblack1 -byellow -d3
    To this
    Code:
    5 8 * * 1,4 cd /var/hack/bin; echo 'SCHEDULED REBOOT IN 20 MINUTES...' | /var/hack/bin/out2osd -c1 -fblack1 -byellow -d3
    15 8 * * 1,4 cd /var/hack/bin; echo 'SCHEDULED REBOOT IN 10 MINUTES...' | /var/hack/bin/out2osd -c1 -fblack1 -byellow -d3
    Is this all I need to do to change it so it does it at 4:25 am EST before I get up?
     
  20. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL

Share This Page