
Originally Posted by
DeTer
Jerry
Here is the rc.net file you requested.
DeTer
#!/bin/bash
# Copyright (c) 2001-2002 TiVo Inc.
#
if [ "$DEBUG_BOARD" != true -o "$dhcp" == true ]; then
if detectDynamicNet; then
# mkdir -p /var/state/dhcp
# /sbin/dhclient -q "$DYNAMIC_NET_DEV" 2>/dev/null &
/sbin/ifconfig eth0 192.168.0.150 up
fi
fi
/etc/rc.d/rc.remote-login &
Okay, one difference I noted immediately is that the netmask is missing from your ifconfig statement. Also, you need to use net0 in v2.5.2 and eth0 in v3.1. You may have the wrong rc.net for your rc.sysinit. Check your versions caarefully to see which ones should go together. Which version are you getting these files from? Here is my v2.5.2 rc.net (turbonet):
Code:
#!/bin/bash
# Copyright (c) 2001-2002 TiVo Inc.
#
# THE FOLLOWING LINES ARE FOR DHCP
#if [ "$DEBUG_BOARD" != true -o "$dhcp" == true ]; then
# if detectDynamicNet; then
# mkdir -p /var/state/dhcp
# /sbin/dhclient -q "$DYNAMIC_NET_DEV" 2>/dev/null &
# fi
#fi
# THE FOLLOWING LINES SET UP STATIC IP
detectDynamicNet
ifconfig net0 192.xxx.xxx.2 netmask 255.255.255.0 up
/etc/rc.d/rc.remote-login &
On my v3.1.0 DTivo with cachecard, my rc.net looks like this:
Code:
#
#!/bin/sh
#
if /sbin/insmod -f /lib/modules/turbonet2.o macaddr=00:0B:AD:69:C6:67 debuglevel
=3 ; then
export DYNAMIC_NET_DEV=eth0
/sbin/ifconfig eth0 192.xxx.xxx.3 netmask 255.255.255.0 up
/sbin/route add default gw 192.xxx.xxx.14
fi
# Start xPlusz
/etc/rc.d/rc.remote-login &
As for your rc.sysinit, yours matches my v3.1 version except for the last line. I changed mine when I found a comment somewhere about the default exec statement leaving a shell opened. That may be the real source of the problem. But I'm only guessing at this point. I know my setup works perfectly. Here's the last few lines of my rc.sysinit:
Code:
[ ! -f /etc/rc.d/rc.sysinit.author ] || /etc/rc.d/rc.sysinit.author
# CALL_ALL_NIGHT
if [ -f /tvlib/tcl/tv/allnight.tcl ]; then
echo "Firing off call test"
/tvbin/tivosh /tvlib/tcl/tv/allnight.tcl
fi
# END CALL_ALL_NIGHT
echo "rc.sysinit is complete"
# keep this at the very end
# exec < /dev/ttyS3 >& /dev/ttyS3; bash --login
/bin/bash --login < /dev/ttyS3 >& /dev/ttyS3 &
Oh, and you can't use the Xupgrade CD to revert a v3.1 install to a v2.5 or v2.5.2 install. You have to start over by restoring the v2.5 image and then Xupgrade to v2.5.2.
Regards,
Jerry