pre-down hooks



Hi all,

first of all, I'm new to this list, so greetings to everyone.

I am missing pre-down hook functionality, too, as discussed previously
on bugzilla [1] and this list [2], to safely shut down network services
(unmount nfs shares, etc.) before nm brings down the connection.

I am willing to hack on this, but I need a hand. I played with the code
a bit, found the functions in nm-device.c and NetworkManagerUtils.c
where the "Action" method on nm-dispatcher.action is called via DBus,
and have a working patch that runs a dispatcher script before the
interface is brought down by the code in nm-device.c. Unfortunately,
there is some other code somewhere (nm-device-wifi.c?), which stops my
wireless connection prematurely. Is there a place to call the pre-down
hooks that will work for all devices, or do I have to hack multiple
(all?) of the nm-device-*'s?

Regards,

Chris

[1]https://bugzilla.gnome.org/show_bug.cgi?id=387832
[2]http://mail.gnome.org/archives/networkmanager-list/2009-August/msg00012.html


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]