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.
-
Duplicate of askubuntu.com/questions/258580/… ?Tomáš Pospíšek– Tomáš Pospíšek2020-02-16 20:55:16 +00:00Commented 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.Chris Davies– Chris Davies2020-02-16 21:36:56 +00:00Commented Feb 16, 2020 at 21:36
-
This answer worked: How to run a script, depending on internet connectionFakhamatia– Fakhamatia2020-02-16 21:58:41 +00:00Commented 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...Tomáš Pospíšek– Tomáš Pospíšek2020-02-18 00:24:36 +00:00Commented Feb 18, 2020 at 0:24
Add a comment
|
1 Answer
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.