View previous topic :: View next topic |
Author |
Message |
mb Guru
Joined: 25 Apr 2002 Posts: 355 Location: Hessen | .de
|
Posted: Sat Apr 27, 2002 8:22 pm Post subject: rc script dependency [cupsd vs. net] |
|
|
hi,
my notebook is only sometimes connected via eth0 [dhcp] to a network. at home i use an wireless lan on eth1 [static ip].
my problem that the net.eth0 script will fail when i'm at home and also all other scripts depending on net.
is there a way to continue anyway (without bringing up eth0) ????
#mb |
|
Back to top |
|
|
Nitro Bodhisattva
Joined: 08 Apr 2002 Posts: 661 Location: San Francisco
|
Posted: Sat Apr 27, 2002 8:33 pm Post subject: |
|
|
Do you have a startup script for eth1?
I *think* that if you had net.eth1 startup, and it ran successfully, then all the need net dependencies would also be satisfied. That's just a guess, I don't have wireless LAN to play with on my little old laptop. _________________ - Kyle Manna
Please, please SEARCH before posting.
There are three kinds of people in the world: those who can count, and those who can't. |
|
Back to top |
|
|
mb Guru
Joined: 25 Apr 2002 Posts: 355 Location: Hessen | .de
|
Posted: Sat Apr 27, 2002 10:12 pm Post subject: |
|
|
unfortunally not...
i do have net.eth0 and net.eth1....
Code: |
root@ares micha # /etc/init.d/net.eth0 start
* Bringing eth0 up...
* Failed to bring eth0 up [ !! ]
root@ares micha # /etc/init.d/net.eth1 start
* Bringing eth1 up... [ ok ]
* Setting default gateway... [ ok ]
root@ares micha # /etc/init.d/cupsd start
* Bringing eth0 up...
* Failed to bring eth0 up [ !! ]
* ERROR: Problem starting needed services.
* "cupsd" was not started.
|
its also strange to set ip/gateway for the wireless in the conf.d/net instead of pcmcia/wireless.opts.... but this is an other topic
#mb |
|
Back to top |
|
|
Nitro Bodhisattva
Joined: 08 Apr 2002 Posts: 661 Location: San Francisco
|
Posted: Sat Apr 27, 2002 10:50 pm Post subject: |
|
|
Maybe take a peek at http://www.gentoo.org/doc/rc-scripts.html and see if that is any help. _________________ - Kyle Manna
Please, please SEARCH before posting.
There are three kinds of people in the world: those who can count, and those who can't. |
|
Back to top |
|
|
mb Guru
Joined: 25 Apr 2002 Posts: 355 Location: Hessen | .de
|
Posted: Sun Apr 28, 2002 9:33 am Post subject: |
|
|
good point... rtfm
if found:
Quote: |
The USE dependency type
The service is not critical for starting the current service, but should be started before the current if it is used.
...
USE is thus a "weak" dependency.
|
ok.. i gave it a try... but nope same problem..
so.. i figured out, that the interpreter #!/sbin/runscript wants to start eth0.. replacing with #!/bin/sh works fine...
strange, strange....
#mb |
|
Back to top |
|
|
|