<p>Per Issue <a href="https://github.com/opentechinstitute/luci-commotion/issues/180" class="issue-link" title="Changing the node name and reverting, reverts in the Basic Config, and keeps the changed value in the header">#180</a> this pull request modifies the way hostnames are added to the system by pushing all system-level manipulation of the hostname into a init.d script. </p>

<p>To Test: <br>
1) Flash a node with this branch included<br>
2) Connect to node and click "setup wizard"<br>
3) Change the host-name to one of your choosing on the first page<br>
4) On the next page the hostname field in the header should still read "commotion"<br>
5) On the "Save and Apply" page click the "Start Over" button<br>
6) If the hostname changes should now be reverted <br>
7) Add a new hostname<br>
8) On the "Save and Apply" page click the "Save and Apply" button<br>
9) Log into the administration menu<br>
10) In the header should state the new hostname you added as your hostname.</p>

<p>5) When you are brought back to the original page, the hostname will still be set on the node</p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>modified hostname to use uci-track instead of setting itself in proc/.../hostname immediately so that a setup-wizard user will not immediately have their changes set.</li>
  <li>fixed uci calls and removed calls to sys on page load.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/188/files#diff-0">files/etc/init.d/hostname</a>
    (18)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/188/files#diff-1">files/etc/uci-defaults/luci-setup-wizard</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/188/files#diff-2">luasrc/model/cbi/commotion/basic_ns.lua</a>
    (1)
  </li>
</ul>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/opentechinstitute/luci-commotion/pull/188'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTY1NjEyOSwiZGF0YSI6eyJpZCI6MjcwMTYxMzN9fQ==--3b07be1fe51d0ee96b3fba91707a50c5c9ac25b0.gif' height='1' width='1'></p>