ifplugd with custom netctl profile

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

ifplugd with custom netctl profile

Postby overrider » Wed Jan 15, 2014 5:43 am

Hello there,

i have two custom made profiles in /etc/netctl, namely custom_dhcp and custom_static

After a fresh install, i run systemctl disable netctl-ifplugd@eth0.service, and then netctl enable custom_static. After reboot, i use systemctl --type=service and see that my custom_static profile indeed was loaded. If i don't run the systemctl disable netctl-ifplugd@eth0.service, then my custom profile does not get started.

Now what i want to do is to somehow run my custom_static profile together with ifplugd, so that when a cable is connected only after the PI has already booted, ifplugd detects that and starts the profile. Simply running netctl enable custom_static works fine if the PI gets booted with cable connected, but not without.

Thanks for helping out...
overrider
 
Posts: 4
Joined: Fri Jan 03, 2014 1:24 pm

Re: ifplugd with custom netctl profile

Postby overrider » Wed Jan 15, 2014 6:06 am

Could it be that i need to first enable, then disable my profile and THEN enable ifplugd?

Like this for example:

1. netctl enable custom_static
2. netctl disable custom_static
3. systemctl disable netctl@custom_static.service
4. systemctl enable netctl-ifplugd@eth0.service
overrider
 
Posts: 4
Joined: Fri Jan 03, 2014 1:24 pm

Re: ifplugd with custom netctl profile

Postby pepedog » Wed Jan 15, 2014 8:34 am

All you had to do was delete ( or move out the folder) the eth0 profile
The eth0 in systemctl enable netctl-ifplugd@eth0.service refers to all profiles where Interface=0
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 3 guests