0

How can I set Ubuntu to run a bash when network changes. Like changing local IP, connecting VPNs, disconnect one interface and connect to another.

4
  • Duplicate of askubuntu.com/questions/258580/… ? Commented Feb 16, 2020 at 20:55
  • @TomášPospíšek quite possibly, but we don't tag cross-site duplicates. You'd be welcome to create your own answer and cross-reference that one as your source. Commented Feb 16, 2020 at 21:36
  • This answer worked: How to run a script, depending on internet connection Commented Feb 16, 2020 at 21:58
  • @TiTAN : the idea would now be to give good answers some points, by clicking on the "up" flag, that is the recompense for answering your question... Commented Feb 18, 2020 at 0:24

1 Answer 1

0

See my net-o-matic script at https://github.com/waltinator/net-o-matic . It watches for connection going down and does a user- specified Thing.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.