PDA

Bekijk de volledige versie : Services startup



byteZero
13-05-2005, 22:29
I'm using 1.9.2.7-5a firmware in my WL-500g, and i would like to stop some services from running on boot (like telnet), how can i do this? Is there a file i can edit for this purpose?

Is it possible to have some text output when i ssh to the router? Like .bashrc or .profile in linux distros..


Thanks

barsju
14-05-2005, 00:40
http://oleg.wl500g.info

keyword post-boot.

S.

macsat
14-05-2005, 03:00
You can find working examples of usage on

byteZero
14-05-2005, 09:24
Thank you both.

byteZero
14-05-2005, 12:00
Only solution i could find is to add "killall telnetd" in /usr/local/sbin/post-boot. Is this considered a good method for shutting down a "standard service" ?
About the text output issue i couldn't find any solution so far, can anyone give a suggestion ?
I only wanted to print a simple message like "Welcome to <whatever>"

Oleg
14-05-2005, 12:08
Only solution i could find is to add "killall telnetd" in /usr/local/sbin/post-boot. Is this considered a good method for shutting down a "standard service" ?

Yes, this is the only way for services, which could not be disabled via web interface.


About the text output issue i couldn't find any solution so far, can anyone give a suggestion ?
I only wanted to print a simple message like "Welcome to <whatever>"
Use /etc/motd.

byteZero
14-05-2005, 12:25
Thank you Oleg, i just created the motd file in "/etc" but after doing flashfs save & flashfs commit, after reboot the file dissapears :confused:. What am i doing wrong ?

Oleg
14-05-2005, 12:29
You have to re-read info on my page and then add it to the /usr/local/.files

byteZero
14-05-2005, 12:47
Thanks Oleg, that solved my problem.