Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there a way to monitor interface up/downs, especially to check if a route is setup or removed, with udev?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I am really not sure (and highly doubt it) if udev provides an interface for it but you can easily monitor it without udev. You just have to use a netlink socket with NETLINK_ROUTE to get notifications about changed addresses, changed routing tables etc.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.