kucharski27
01-27-2007, 11:19 AM
I currently have a static ip address assigned in the rc.sysinit.author file, but everything I reboot the tivo device it trys to assign a DHCP ip address before the static ip address takes over. Are there any other files I need to modifiy so that DHCP doesn't try to grab an ip. Here is my rc.sysint.author. Any help would be appreciate it.
Thanks...
STATIC_IP=x.x.x.20
NETMASK=255.255.255.0
BROADCAST=x.x.x.255
GATEWAY=x.x.x.1
if [ -f /init/ptv_flags/FIRSTTIME_ON ]; then
tivosh /ptvupgrade/bin/51killer.tcl
/ptvupgrade/bin/rootwrite;
cp /init/ptv_images/PromScreen2Version7.NTSC.png /tvbin
rm -rf /init/ptv_flags/FIRSTTIME_ON
/ptvupgrade/bin/rootread;
sync
reboot
fi
#######
# This sets the priority of hacks and shell commands to the lowest
# possible priority so that the TiVo operation is not affected by
# your tinkering; uncomment this if you find your tinkering gets in the
# way, just note that sometimes you can lock up the shell if you do have this
# uncommented, so be prepared with a serial cable, just in case you mess things
# up.
# setpri fifo 1 $$
# Startup BASH in case you are using a serial cable to connect
# This has been moved to the /init directory so that shell starts
# right at boot time
# /bin/bash -login</dev/ttyS2&>/dev/ttyS2 &
# Lets set the path to look in our own bin first, and then busybox
export PATH=$PATH:/ptvupgrade/bin:/ptvupgrade/busybox
# An extra library directory needed for yac and elseed
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ptvupgrade/lib
# Check flags for IP address (we recommend you just stick with DHCP)
if [ -f /init/ptv_flags/DHCP_OFF ]; then
/ptvupgrade/bin/dhcp_enable.ptv
fi
if [ -f /init/ptv_flags/STATIC_ON ]; then
ifconfig eth0 $STATIC_IP broadcast $BROADCAST netmask $NETMASK
route add default gw $GATEWAY
fi
sleep 3
#start telnet
if [ -f /init/ptv_flags/TELNET_ON ]; then
tnlited 23 /bin/bash -login &
fi
#start ftp
if [ -f /init/ptv_flags/FTP_ON ]; then
/ptvupgrade/bin/tivoftpd
fi
#start tivowebplus
if [ -f /init/ptv_flags/TIVOWEB_ON ]; then
mkdir -p /var/hack
/ptvupgrade/TivoWebPlus/tivoweb
sleep 30
fi
# check to see if PHONE_OFF has been set - if it is then we check to ensure
# cron is setup so that fakecall is automatically run
if [ -f /init/ptv_flags/PHONE_OFF ]; then
if ! [ -f /var/spool/cron/crontabs/root ]; then
/ptvupgrade/misc/cron_stuff/setup_cron
fi
phonereset.tcl
fakecall.tcl
crond
fi
# start extended tpm apps or other things
# thanks mike for the tpm structure
for i in /init/ptv_start/S[0-9][0-9]*
do
# Check if the script is there
[ ! -f $i ] && continue
source $i start
done
Thanks...
STATIC_IP=x.x.x.20
NETMASK=255.255.255.0
BROADCAST=x.x.x.255
GATEWAY=x.x.x.1
if [ -f /init/ptv_flags/FIRSTTIME_ON ]; then
tivosh /ptvupgrade/bin/51killer.tcl
/ptvupgrade/bin/rootwrite;
cp /init/ptv_images/PromScreen2Version7.NTSC.png /tvbin
rm -rf /init/ptv_flags/FIRSTTIME_ON
/ptvupgrade/bin/rootread;
sync
reboot
fi
#######
# This sets the priority of hacks and shell commands to the lowest
# possible priority so that the TiVo operation is not affected by
# your tinkering; uncomment this if you find your tinkering gets in the
# way, just note that sometimes you can lock up the shell if you do have this
# uncommented, so be prepared with a serial cable, just in case you mess things
# up.
# setpri fifo 1 $$
# Startup BASH in case you are using a serial cable to connect
# This has been moved to the /init directory so that shell starts
# right at boot time
# /bin/bash -login</dev/ttyS2&>/dev/ttyS2 &
# Lets set the path to look in our own bin first, and then busybox
export PATH=$PATH:/ptvupgrade/bin:/ptvupgrade/busybox
# An extra library directory needed for yac and elseed
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ptvupgrade/lib
# Check flags for IP address (we recommend you just stick with DHCP)
if [ -f /init/ptv_flags/DHCP_OFF ]; then
/ptvupgrade/bin/dhcp_enable.ptv
fi
if [ -f /init/ptv_flags/STATIC_ON ]; then
ifconfig eth0 $STATIC_IP broadcast $BROADCAST netmask $NETMASK
route add default gw $GATEWAY
fi
sleep 3
#start telnet
if [ -f /init/ptv_flags/TELNET_ON ]; then
tnlited 23 /bin/bash -login &
fi
#start ftp
if [ -f /init/ptv_flags/FTP_ON ]; then
/ptvupgrade/bin/tivoftpd
fi
#start tivowebplus
if [ -f /init/ptv_flags/TIVOWEB_ON ]; then
mkdir -p /var/hack
/ptvupgrade/TivoWebPlus/tivoweb
sleep 30
fi
# check to see if PHONE_OFF has been set - if it is then we check to ensure
# cron is setup so that fakecall is automatically run
if [ -f /init/ptv_flags/PHONE_OFF ]; then
if ! [ -f /var/spool/cron/crontabs/root ]; then
/ptvupgrade/misc/cron_stuff/setup_cron
fi
phonereset.tcl
fakecall.tcl
crond
fi
# start extended tpm apps or other things
# thanks mike for the tpm structure
for i in /init/ptv_start/S[0-9][0-9]*
do
# Check if the script is there
[ ! -f $i ] && continue
source $i start
done