You are not logged in.

#1 2013-12-04 11:03:48

phq
Member
Registered: 2013-11-28
Posts: 1

How to reload netctl-ifplugd/auto@... configs?

I have a system which will be configured to either use eth0 or wlan0 but only one at a time.
Similar it will be configured to either use DHCP or a static IP.

These configurations will be set using a script but at the moment I'm trying it out by hand.

So far I have been writing a custom /etc/netctl/mysetup and enabled netctl-ifplugd/auto@...

What works is that I can modify mysetup and restart the computer but I rather only reload the service.

I've tried to restart netctl-ifplug@eth0 but the interface is not modified.
If I unplug, wait 10s and then plug it back I get the new configuration.

Is there perhaps a way to trigger ifplugd to reconfigure the network as if a cable was plugged in?


Also I have seen that I can start a service directly connected to my configuration but I assume that it won't work with DHCP unless it got access at boot.

Offline

Board footer

Powered by FluxBB