[Solved] if-up/down hooks

This forum is for discussion about general software issues.

[Solved] if-up/down hooks

Postby tgckpg » Thu Jan 21, 2016 11:22 am

I have just set up my raspberry pi. And after some tweaking I've discovered that archlinux is using systemd-networkd to handle dhcp.

But there is no up/down hook. Are there alternatives to it? Since the pi is dynamic ip. I need to setup a script for notifying ip changes.

Thank you.
Last edited by tgckpg on Fri Jan 22, 2016 1:40 pm, edited 1 time in total.
tgckpg
 
Posts: 4
Joined: Sun Jan 17, 2016 11:33 am

Re: if-up/down hooks

Postby WarheadsSE » Thu Jan 21, 2016 1:15 pm

You don't _have_ to use systemd-networkd, we simply choose to use it as a default in the filesystem tarball. You can change that out for things like netctl if you so choose.

You can do this by making use of a service that is bound to the network-online.target, and every time the network is marked "online" it will fire off your script.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: if-up/down hooks

Postby tgckpg » Fri Jan 22, 2016 1:39 pm

Thanks for the info. I'll look into it. Marking this as solved now.
tgckpg
 
Posts: 4
Joined: Sun Jan 17, 2016 11:33 am


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest