December 11, 2003
Tivo rc.sysinit.author
I've hacked my RCA DVR39 DirecTivo to support using a Linksys USB ethernet connection. I use this in the /etc/rc.d/rc.sysinit.author file:I'll explain what each line provides.#!/bin/bash echo "loading hacks" PATH=/sbin:/bin:/tivobin:/tvbin:/var/hack/bin:. TIVO_ROOT= MFS_DEVICE=/dev/hda10 IGNOREEOF=1000 TERM=xterm export PATH TIVO_ROOT MFS_DEVICE IGNOREEOF TERM insmod /lib/modules/usbcore.o insmod /lib/modules/hcd.o insmod /lib/modules/ehci-hcd.o insmod /lib/modules/ax8817x.o sleep 10 ifconfig eth0 192.168.13.100 broadcast 192.168.13.255 netmask 255.255.255.0 route add default gw 192.168.13.1 tivoftpd /var/hack/tivoweb-tcl/tivoweb /bin/bash /dev/ttyS2& tnlited 23 /bin/bash -login &
- #!/bin/bash
- echo "loading hacks"
- PATH=/sbin:/bin:/tivobin:/tvbin:/var/hack/bin:.
- TIVO_ROOT=
- MFS_DEVICE=/dev/hda10
- IGNOREEOF=1000
- TERM=xterm
- export PATH TIVO_ROOT MFS_DEVICE IGNOREEOF TERM
- insmod /lib/modules/usbcore.o
- insmod /lib/modules/hcd.o
- insmod /lib/modules/ehci-hcd.o
- insmod /lib/modules/ax8817x.o
- sleep 10
- ifconfig eth0 192.168.13.100 broadcast 192.168.13.255 netmask 255.255.255.0
- route add default gw 192.168.13.1
- tivoftpd
- /var/hack/tivoweb-tcl/tivoweb
- /bin/bash /dev/ttyS2&
- tnlited 23 /bin/bash -login &
1. Starts it as a shell script
2. Sends the message 'loading hacks' to the serial console. This is just to let me know the script is being loaded
3. This adds the '/var/hack/bin' directory to the usual path values
4-8 set and export some runtime environment variables
9-11 load USB subsystem modules.
12. load the USB driver for the Linksys device
13. sleep the script to allow the USB setup to complete
14. Give the USB device a fixed IP address
15. Define the default IP network route
16. Start the FTP daemon
17. Start the TivoWeb daemon
18. Activate the serial bash console
19. Load the telnet network daemon







