PDA

View Full Version : When does rc.remote-login run?


groovdadelic
09-23-2002, 10:10 PM
Ran kravens upgrade, everything seemed great. I just put in my turbonet card. It seems everything in rc.remote-login isnt running. I can manually execute it and then telnet/web/etc works but it doesnt seem to run during bootup.

When is rc.remote-login called on?

Thanks!

BubbleLamp
09-24-2002, 02:38 AM
rc.remote-login gets called from rc.net, around line number 538.

Also, if you don't have a DHCP server, you'll need to edit rc.remote-login.


If you want use a static address on their turbonet or tivonet just needs to add the following line to the top of rc.remote-login:

ifconfig net0 192.168.1.99 netmask 255.255.255.0
route.tivonet delete default 2> /dev/null
route.tivonet add default gw 192.168.1.1 netmask 0.0.0.0 dev net0

of course replacing the ip, subnet mask, and default gateway with whatever your using. No worries about it making the daily call over ethernet because it's now net0 and the daily call uses eth0

groovdadelic
09-30-2002, 10:19 AM
Hmm.. you say it runs it around line 538, here is my rc.net:

-------
rc.net

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

/etc/rc.d/rc.remote-login &
-------

Thats it... something not right as there is definatly no line 538...?

I have added the ifconfig and route commands to my rc.remote-login since I need to assign it a static IP, and I can get TivoWeb/Telnet/Ftp to work if I manually run rc.remote-login (get a few error msg here and there, but those services do start then...)

Sorry, Ive been banging my head on this for awhile, all the while trying to learn unix as much as I can so it will make things like this easier to figure out.

BubbleLamp
09-30-2002, 11:57 AM
Sorry, rc.net gets called from rc.sysinit at line 538! My bad. :o

groovdadelic
09-30-2002, 03:58 PM
Looks like I do have this in rc.sysinit:

----
unset DYNAMIC_NET_DEV
if [ -f /etc/rc.d/rc.net ]
then
echo "Configuring network..."
source /etc/rc.d/rc.net
----

Since I am using a static address, could this be causing a problem? I've seen several posts about removing some files for DHCP, but since I could manually run rc.remote-login I thought it was just matter of it not running.

Thanks again for your help.

BubbleLamp
09-30-2002, 04:47 PM
Originally posted by groovdadelic
Looks like I do have this in rc.sysinit:

----
unset DYNAMIC_NET_DEV
if [ -f /etc/rc.d/rc.net ]
then
echo "Configuring network..."
source /etc/rc.d/rc.net
----

Since I am using a static address, could this be causing a problem? I've seen several posts about removing some files for DHCP, but since I could manually run rc.remote-login I thought it was just matter of it not running.

Thanks again for your help.

As I think I see it, what is happening is your drivers are being loaded at the end of rc.sysinit. The call to rc.net is happening before that, hence all the stuff that rc.net and rc.arch (called at line 128) are supposed to do can't work.

Looking at rc.arch, looks like he moved a LOT of stuff out of rc.sysinit into it.

If you want the minimal hassle, I think the way to go is to just move these lines:

unset DYNAMIC_NET_DEV
if [ -f /etc/rc.d/rc.net ]
then
echo "Configuring network..."
source /etc/rc.d/rc.net
fi

to right below where your drivers and network settings are now, and it should work.

groovdadelic
09-30-2002, 05:36 PM
Hmm it "looks" like the net is starting around 450..

I moved the call to rc.net near the bottom of rc.sysinit but still doesnt startup.

I will attach some of my files to the next msg...

appreciate the help! Seems I have too many projects(dont we all) and would be nice to complete some of "this" project ;)

groovdadelic
09-30-2002, 05:39 PM
t.zip includes: rc.arch , rc.net , rc.remote-login , rc.sysinit

BubbleLamp
09-30-2002, 07:16 PM
Didn't you say you had a wireless card, or am I confusing you with someone else I didn't help either!? :confused:

Anyway, looks like your static route netmask isn't set. Should be 255.255.255.0 as well. Not sure why it'd cause a problem on the local segment, but what do I know!