PDA

View Full Version : Probably a lame UNIX question but...


Vlad-The-Impald
01-05-2003, 09:50 PM
I am trying to get the rc.remote-login script to automatically execute when I powerup my T60. I have edited the file with all the TurboNet stuff in there that I need, and if I manually execute it, it works fine. But I don't want to have to get a serial BASH prompt just to start this off. I'm not sure if it is supposed to automatically start, by just existing in the /etc/rc.d directory, but my guess is that it isn't.

What is the best way to have this automatically run when the Tivo starts up? I am running 2.5Xtremed with Kraven's mods.

Thanks in advance.

Vlad

milenko
01-05-2003, 10:04 PM
Be sure that it's executable: chmod +x /etc/rc.d/rc.remote-login

Then add the following to your rc.sysinit down near the bottom somewhere:

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

zabs
01-06-2003, 03:37 AM
If you have installed kraven's update (and I assume you have) you will find that rc.remote-login is already called from rc.net and rc.net is called from rc.sysinit. So you should NOT put in another line at the bottom of your rc.sysinit (as calling rc.remote-login twice will not help, and could hurt.)

It is a good idea to be sure it is executable (chmod +x) but it should be if you are able to run it in this fashion:
/etc/rc.d/rc.remote-login

If you are trying to setup a static ip and it does not seem to be working try the following:
1) comment out the calling of dhclient in rc.net
2) rename /sbin/dhclient to /sbin/dhclient.bak (this is redundant of step 2, but insurance to make sure that the dhcp client is not getting called while you are trying to setup your static ip)

if you are still having troubles, let me know and we'll keep troubleshooting.

Vlad-The-Impald
01-06-2003, 08:54 AM
Thanks for the tips. I tried looking at the rc.net and did see that it was being called from rc.sysinit. However after commenting out the DHCP lines in rc.net, and then attempting a reboot, nothing happened. So I tried to manually start rc.net. After starting, still no network connection.

What is working is if I leave rc.net intact, with the DHCP lines, and then manually start rc.remote-login after a boot. That seems to work. I have a fixed IP address on this Tivo, so I don't want to use DHCP anyway, but it would seem that without calling the DHCP lines AND then manually calling the rc.remote-login, I can't get a network connection.

Any ideas?

Vlad

Vlad-The-Impald
01-06-2003, 08:59 AM
I don't know much about UNIX and I don't know if this is a clue, but I can only get it to run if I type:

./rc.remote-login

The addition of the . before the command seems to work, but without it nothing happens. Is that a clue?

Vlad

BubbleLamp
01-06-2003, 01:02 PM
Originally posted by Vlad-The-Impald
I don't know much about UNIX and I don't know if this is a clue, but I can only get it to run if I type:

./rc.remote-login

The addition of the . before the command seems to work, but without it nothing happens. Is that a clue?

Vlad

You must use the ./ when you are in the directory of the file you are trying to run. The full path would also have worked, /etc/rc.d/.rc.remote-login.

Vlad-The-Impald
01-06-2003, 01:35 PM
Does this work the same way in script (text) files? What do I put in a text file to force the execution of another script file?

Vlad