Eventscripts: 10.interfaces - new function get_all_interfaces().
authorMartin Schwenke <martin@meltin.net>
Tue, 5 Jul 2011 07:18:30 +0000 (17:18 +1000)
committerMartin Schwenke <martin@meltin.net>
Fri, 12 Aug 2011 06:34:34 +0000 (16:34 +1000)
commite7963d8a65a699689dfc4540110ca2892f18ab1f
treee36f625582be01235032ebe4d3396a90b135d126
parent9bdcdb76be52cf0285fcfb72da93d10fc24d8f16
Eventscripts: 10.interfaces - new function get_all_interfaces().

Move existing interface listing code to new function in preparation
for using it in startup event.

While we're here change the "sort | uniq" into "sort -u" and save some
complexity.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit cd1442531ad079b11c60f46ee9d34f5104bef219)
ctdb/config/events.d/10.interface