<p>NOTE: This pull request depends on <a href="https://github.com/opentechinstitute/commotiond/pull/57" class="issue-link" title="Issue69">opentechinstitute/commotiond#57</a></p>

<p>The two can be tested in tandem</p>

<p>To test:</p>

<p>1) After flashing a node, and while connected via ethernet, go to the url "thisnode" in your browser (as you would normally). <br>
You should see the admin page.</p>

<p>2) On your machine:<br>
$ host thisnode<br>
You should see: <br>
thisnode.mesh.local has address 169.254.xx.xx</p>

<p>3) Back in your browser, run quickstart and ssh into the node (again, via ethernet)<br>
$ uci show network</p>

<p>You should see an entry for the thisnode alias that looks like this:<br>
network.thisnode=alias<br>
network.thisnode.interface=plug<br>
network.thisnode.ipaddr=169.254.7.130<br>
network.thisnode.netmask=255.255.0.0<br>
network.thisnode.proto=static</p>

<p>4) $ less /etc/config/network<br>
You should NOT see an entry for the thisnode alias</p>

<p>5) Reboot the node. Recheck steps 1 through 4.</p>

<p>Store in a cool, dry place.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/commotion-openwrt issue69</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/commotion-openwrt/pull/72'>https://github.com/opentechinstitute/commotion-openwrt/pull/72</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>edited hotplug script to use link local ip address</li>
  <li>cleaned up hotplug script</li>
  <li>added new uci alias</li>
  <li>fixed execution logic</li>
  <li>increased customizability for alias</li>
  <li>added warning about alias method deprecation in more recent versions of openwrt</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/commotion-openwrt/pull/72/files#diff-0">default-files/etc/hotplug.d/iface/90-thisnode</a>
    (28)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/commotion-openwrt/pull/72.patch'>https://github.com/opentechinstitute/commotion-openwrt/pull/72.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/commotion-openwrt/pull/72.diff'>https://github.com/opentechinstitute/commotion-openwrt/pull/72.diff</a></li>
</ul>