<p>Replaces <a href="https://github.com/opentechinstitute/luci-commotion/pull/185" class="issue-link" title="removed return statements from init calls">#185</a>.</p>

<p>Fixes <a href="https://github.com/opentechinstitute/luci-commotion/issues/184" class="issue-link" title="Nodogsplash does not restart after changing lease time">#184</a>, <a href="https://github.com/opentechinstitute/luci-commotion/issues/189" class="issue-link" title="Values Reversed in Client Controls Page">#189</a> </p>

<p>To test:<br>
1. In your browser, go to Admin > Client Controls and change the Time Until Welcome Page is Shown to 1 hour.<br>
2. "Seconds" should not be an available option.<br>
3. Click Save, then Save & Apply.<br>
4. SSH in and run <code>ndsctl status</code>. If you see actual nodogsplash data, the fix worked. If the fix didn't work you will see <code>ndsctl: nodogsplash probably not started (Error: Connection refused)</code>.<br>
5. Open /etc/nodogsplash/nodogsplash.conf. ClientIdleTimeout and ClientForceTimeout should each be set to 60.<br>
6. In your browser, set Time Until Welcome Page to 1 day. ClientIdleTimeout/ClientForceTimeout should be 1440.</p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>removed return statements from init calls</li>
  <li>Swapped calculations for hours and days</li>
  <li>Removed unused seconds value</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/194/files#diff-0">files/etc/init.d/ucidog</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/194/files#diff-1">luasrc/model/cbi/commotion/client_wp.lua</a>
    (1)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/194.patch'>https://github.com/opentechinstitute/luci-commotion/pull/194.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/194.diff'>https://github.com/opentechinstitute/luci-commotion/pull/194.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/194'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTc1NDU2NSwiZGF0YSI6eyJpZCI6MjcxMjc5MDZ9fQ==--3e89d0b70bb4f5bf5b32011accd2eba42ddce81d.gif' height='1' width='1'></p>