How can I display a message like:
eth1 interface has been enabled
each time when eth1 is enabled?
Let me know if my question make sense.
How can I display a message like:
eth1 interface has been enabled
each time when eth1 is enabled?
Let me know if my question make sense.
After some searches, I found a way how you can do it:
First, disable the usual notification from Network Manager. How? Your answer is here:
Run a script to notify you every time internet connects. How? Here is your answer:
How you can get notified from a script? Again, there are answers on Stack Exchange in this sense:
You can add a shell script into
/etc/NetworkManager/dispatcher.d
that you might name99-notification
. Be sure to mark it executable withchmod +x 99-notification
.In that script, you will need to do something with the input to script, the interface name and the action.
I have not tested this, but I think it will work, at least with KDE. For Unity/Gnome, you might have to exchange
kdialog
withzenity
.