~smoser/curtinator/fix-default-address

Viewing all changes in revision 5.

  • Committer: Scott Moser
  • Date: 2018-01-05 15:33:11 UTC
  • Revision ID: smoser@ubuntu.com-20180105153311-80cfs1xyt4d2qyo6
Fix setting of DEFAULT_ADDRESS on bionic.

ifconfig output is fragile, and changed between xenial and bionic.
The change modifies DEFAULT_ADDRESS to use 'ip show dev' rather than
'ifconfig'.  Also fail early if no address is found.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: