1 |
On 30/09/2014 14:46, Kerin Millar wrote: |
2 |
> On 30/09/2014 14:42, meino.cramer@×××.de wrote: |
3 |
>> Kerin Millar <kerframil@×××××××××××.uk> [14-09-30 15:08]: |
4 |
>>> On 30/09/2014 12:49, meino.cramer@×××.de wrote: |
5 |
>>>> Neil Bothwick <neil@××××××××××.uk> [14-09-30 12:44]: |
6 |
>>>>> On Tue, 30 Sep 2014 12:39:06 +0200, meino.cramer@×××.de wrote: |
7 |
>>>>> |
8 |
>>>>>>>> [I] sys-apps/ifplugd |
9 |
>>>>>>>> Available versions: |
10 |
>>>>>>>> 0.28-r9 [doc selinux] |
11 |
>>>>>>>> Installed versions: 0.28-r9(11:14:57 12/18/10)(-doc) |
12 |
>>>>>>>> Homepage: |
13 |
>>>>>>>> http://0pointer.de/lennart/projects/ifplugd/ Description: |
14 |
>>>>>>>> Brings up/down ethernet ports automatically with cable detection |
15 |
>>>>> |
16 |
>>>>>>> and another alternative would be sys-apps/netplug |
17 |
>>>>> |
18 |
>>>>>> WHOW! That all sounds much more easier than I have dreamt of! |
19 |
>>>>>> I did not thought, that such software exists already -- and |
20 |
>>>>>> therefore |
21 |
>>>>>> did not search for it... |
22 |
>>>>> |
23 |
>>>>> If you use openrc, you only need to install one of these programs, |
24 |
>>>>> not |
25 |
>>>>> configure or set it to run. OpenRC detects that one of these programs |
26 |
>>>>> is |
27 |
>>>>> available and uses it to do exactly what you need. |
28 |
>>>>> |
29 |
>>>>> |
30 |
>>>>> -- |
31 |
>>>>> Neil Bothwick |
32 |
>>>>> |
33 |
>>>>> We are upping our standards - so up yours. |
34 |
>>>> |
35 |
>>>> ...ok, it works! |
36 |
>>>> ...nearly... ;) |
37 |
>>>> |
38 |
>>>> |
39 |
>>>> |
40 |
>>>> Unfortunately, ntp-client is configured via rc-update (added to |
41 |
>>>> "default") but after plugging in LAN the interface eth0 comes |
42 |
>>>> up and I have access via ssh...but the date is set to the beginnig |
43 |
>>>> of the UNIX epoch. |
44 |
>>>> I have to call ntp-client by hand. |
45 |
>>> |
46 |
>>> If you know that net.eth0 is specifically required to be up for |
47 |
>>> ntp-client to work, you should render OpenRC aware of the fact: |
48 |
>>> |
49 |
>>> echo 'rc_need="net.eth0"' >> /etc/conf.d/ntp-client |
50 |
>>> |
51 |
>>> --Kerin |
52 |
>>> |
53 |
>> |
54 |
>> Hi Kerin, |
55 |
>> |
56 |
>> I tried a similiar thing: |
57 |
>> |
58 |
>> #!/sbin/runscript |
59 |
>> # Copyright 1999-2013 Gentoo Foundation |
60 |
>> # Distributed under the terms of the GNU General Public License v2 |
61 |
>> # $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v |
62 |
>> 1.13 2013/12/24 11:01:52 vapier Exp $ |
63 |
>> |
64 |
>> depend() { |
65 |
>> before cron portmap |
66 |
>> after eth0 |
67 |
>> use dns logger |
68 |
>> } |
69 |
>> |
70 |
>> |
71 |
>> for "after XYZ" |
72 |
>> I set |
73 |
>> net |
74 |
>> net.eth0 |
75 |
>> eth0 |
76 |
>> and none worked for me... |
77 |
> |
78 |
> Using 'after' won't work unless both net.eth0 and ntp-client are in the |
79 |
> default runlevel. Obviously, that condition is not satisfied if you are |
80 |
> using ifplugd. Please try the solution mentioned in my previous post. It |
81 |
> should work. |
82 |
|
83 |
On second thoughts, it might have the unintended affect of starting |
84 |
net.eth0 before iplugd does. If you try it, let me know how it goes. |
85 |
|
86 |
--Kerin |