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