On 2012-08-26 22:19, Joe Zeff wrote:
On 08/26/2012 12:56 PM, Patrick Dupre wrote:
> Hello,
>
> I am back on my previous email.
> When I disconnect the network (ppp0 through ttyUSB) I would like to
> collect some information. Unfortunately if I can detect the
> disconnection
> through a /etc/NetworkManager/dispatcher.d/file
> the ifconfig cannot collect the information about ppp0 because
> the interface is already down.
> I also tried by using:
> /etc/ppp/ip-down.local
> but I face the same issue.
>
> Any idea?
>
Write a little shell script that runs ifconfig, then disconnects.
Of course, but I not control the disconnect. it is usually automatic,
either because the machine shutdown (of course I could then run
the script at shutdown) or it is not under my control (connection
fails).
--
======================================================================
Patrick DUPRÉ | | email: pdupre(a)kegtux.org
======================================================================