diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-01-16 09:13:20 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-01-17 16:13:25 +0800 |
commit | 729bcafedd3b117c031c413fac2e2d2096d62510 (patch) | |
tree | 9bb0efa148d82b628ce4914714d15cd6600757fb /discover/pb-discover.c | |
parent | af805399e80ae70a9fc7af9b47d76577be44a683 (diff) | |
download | talos-petitboot-729bcafedd3b117c031c413fac2e2d2096d62510.tar.gz talos-petitboot-729bcafedd3b117c031c413fac2e2d2096d62510.zip |
discover: Bring down configured interfaces on discover server exit.
We want to down the interfaces that we brought up, so hook up the
network_shutdown function to the discover exit path. Also, we only want
to down interfaces that we've configured, and exclude lo.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/pb-discover.c')
-rw-r--r-- | discover/pb-discover.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/pb-discover.c b/discover/pb-discover.c index b154130..d8708a3 100644 --- a/discover/pb-discover.c +++ b/discover/pb-discover.c @@ -200,6 +200,7 @@ int main(int argc, char *argv[]) break; } + network_shutdown(network); device_handler_destroy(handler); user_event_destroy(uev); udev_destroy(udev); |