#### OZTIVO-SPECIFIC TOOLS #### # $Revision: 1.7 $ # # DON'T EDIT THIS FILE! To control what is run by this script, create # a file called /etc/sysinit.conf, copy the relevant "enable" lines from # /etc/dflt_sysinit.conf into /etc/sysinit.conf, and change them to be # "YES" or "NO" as required. # Load default parameters and any overrides and network parameters . /etc/dflt_sysinit.conf . /etc/sysinit.conf . /etc/oztivo.conf export MY_SERVER=10.0.0.1 export NFS_SERVER=$MY_SERVER export SMB_SERVER=$MY_SERVER #export TIME_SERVER=$MY_SERVER # Use extra libs (termcap, etc) export LD_LIBRARY_PATH=/hack/lib #### Mount Network Shares ####### # mount NFS shares (if you have them) Change the NFS_SERVER variable above to the ip of box with share #insmod -f /lib/modules/nfs.o #mount -t nfs -o rsize=8192,wsize=8192 ${NFS_SERVER}:/home/tivo /hack/nfs # Mount shares on your windows boxen. # This doesn't work too well. # insmod -f /lib/modules/smbfs.o # smbmount //${SMB_SERVER}/SHARE /hack/smb -s putrename -c tivo -I x.x.x.x -U user -D WORKGROUP -P password #### Start Programs ###### # CCXSTREAM - stream to XBOX # google for ccxstream or search forums at xboxmediacenter.de if checkyesno ccxstream_enable; then ccxstream & fi # Start Cron # Edit /hack/etc/crontab to configure it if checkyesno cron_enable; then cron & fi # Start FTP daemon # This is ADH's (from Deal Database) version that saves you from chmod +x # if checkyesno tivoftpd_enable; then tivoftpd & fi # Start TiVoWeb or TivoWebPlus if checkyesno tivoweb_enable; then if [ "$tivoweb_version" = "PLUS" ]; then /hack/TivoWebPlus/tivoweb & else /hack/tivoweb-tcl/tivoweb & fi fi # Autospace.tcl if checkyesno autospace_enable; then /var/hack/autospace/autospace.tcl fi # Vserver - Stream ty files on port 8074 see tivo-mplayer.sf.net if checkyesno vserver_enable; then /devbin/vserver > /dev/null 2>&1 & fi # EndPad # If you want to edit the start and end times, # do so in /hack/endpad-1.5.1/endpad.config if checkyesno endpad_enable; then /hack/endpad-1.5.1/endpad.tcl -auto -config $endpad_configfile >> /dev/null & fi ##### Various Other Hacks ####### # Tweak HDD settings # Don't worry if you don't have a two drive TiVo, it will work for # 1 drive setups too. # Make certain runideturbo=false is in boot params, or rename # the file /lib/modules/ideturbo.o to something else so it doesn't load. hdparm -c1 -m8 -M1 -S0 /dev/hda /dev/hdb hdparm -m16 /dev/hda /dev/hdb # Copy Module # copies anything written to /var/packages to /tmp # very useful for capturing tivo slices. if checkyesno copymod_enable; then insmod -f /lib/modules/copy.o fi # Emu Proxy # A tool for cleaning up the HTTP output by the Tivo in order to pass through # transparent proxies, etc. # Works in conjunction with a small hack to the emulator to accept the header # "TivoURLBase" which is the base url to give back to the Tivo when specifying # data paths. # Runs by default and is dependent on the # 127::127.0.0.1:8000::: # entry in tclient.conf # IF YOU COMMENT THIS OUT SO IT DOESN'T RUN, YOU MUST EDIT THE "127" entry # in /etc/tclient.conf to reflect the IP and port of the emulator you are using # There is a backup of the original here: /etc/tclient.conf-oztivo if checkyesno emuproxy_enable; then if [ "$emuproxy_version" = "2" ]; then # Run emuProxy2 # Usage: %s [-d] [-h] [-l localport] [-L listenAddr] [-s serverip] # [-p serverport] /hack/bin/emuProxy2 -s 194.1.151.205 -p $emulatorport & fi if [ "$emuproxy_version" = "3" ]; then # Run emuProxy3 # Usage: %s [-d] [-h] [-l localport] [-L listenAddr] [-s serverip] # [-p serverport] /hack/bin/emuProxy3 -s 194.1.151.205 -p $emulatorport & fi if [ "$emuproxy_version" = "ZA" ]; then # Run emuProxyZA # You can change the emulator name/port in /etc/oztivo.conf # For other config changes, do them in /hack/etc/emuProxyZA.conf /hack/bin/emuProxyZA -s $emulator -p $emulatorport & fi fi # Report IP - Handy for those not using DHCP-DNS functionality # set dhcp hostname in /etc/dhclient.conf # See http://www.isc.org/ for more info on DHCP and BIND if checkyesno report_ip_enable; then report_ipaddress & fi # Trickey by Kevin Lentin provides a way to force tivo to # run commands by assign remote key sequences. Very Cool! # check out /hack/bin/trickey.README if checkyesno trickey_enable; then trickey & fi # Run the k9tivo NTP broadcast client if checkyesno k9tivo_enable; then k9tivo & fi # Run the bufferhack program to increase the live TV buffer size if checkyesno bufferhack_enable; then bufferhack32a.tcl $bufferhack_size & fi