//depot/projects/tivo/rc.sysinit.author#2 – edit change 25 (xtext) ·revision history
| 1 | #!/bin/bash |
| 2 | # rc.sysinit.author -- runs at the end of rc.sysinit on the TiVo |
| 3 | # packetrat, jan 2002 |
| 4 | |
| 5 | export PATH=/bin:/sbin:/tvbin:/devbin:/var/hack/bin |
| 6 | export TIVO_ROOT= |
| 7 | |
| 8 | # bash on the serial port, 9600 baud |
| 9 | /bin/bash </dev/ttyS3 >&/dev/ttyS3 & |
| 10 | |
| 11 | # TurboNet: bring up eth0 |
| 12 | insmod /lib/modules/turbonet.o |
| 13 | ifconfig eth0 192.168.1.42 netmask 255.255.255.0 up |
| 14 | route add default gw 192.168.1.1 |
| 15 | |
| 16 | # telnet + ftp. no passwords. it is a TiVo behind a NAT, relax. |
| 17 | tnlited 23 /bin/bash -login & |
| 18 | /var/hack/bin/tivoftpd & |
| 19 | |
| 20 | # remount root rw so I can actually change things (remember to put it back!) |
| 21 | # mount -o remount,rw / |
| 22 | |
| 23 | echo "rc.sysinit.author: done" > /dev/ttyS3 |