<p>Per Issue <a href="https://github.com/opentechinstitute/luci-commotion/issues/172" class="issue-link" title="Mesh key-rings are not created by clicking first add button">#172</a> </p>
<p>This commit adds the removal and re-creation of the serval mdp key to the loadPlugin creation process. This will force a key to be created when a user clicks the add button.</p>
<p>To Test: <br>
1) Flash a node with this branch included<br>
2) Complete the setup wizard<br>
3) Go to the “Basic –> Security –> Shared Mesh Keychain” menu<br>
4) SSH into the device and type the following on the command line</p>
<pre><code>SERVALINSTANCE_PATH=/etc/commotion/keys.d/mdp serval-client keyring list
</code></pre>
<p>5) Keep the value that is given to you. That is the current (default) keyring.<br>
6) In the menu Click the add button<br>
7) type the same command in again</p>
<pre><code>SERVALINSTANCE_PATH=/etc/commotion/keys.d/mdp serval-client keyring list
</code></pre>
<p>8) The output should be different at this point. This means that it is a new keyring.<br>
9) Click the "Save" button<br>
10) The value for "olsrd.cfg144e54.sid=..." should match the latest key. If it does, then you should merge this pull request as I have fulfilled my aim of fixing this bug.</p>
<hr>
<h4>You can merge this Pull Request by running</h4>
<pre> git pull https://github.com/opentechinstitute/luci-commotion 172</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/opentechinstitute/luci-commotion/pull/190'>https://github.com/opentechinstitute/luci-commotion/pull/190</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Create new key on LoadPlugin section creation.</li>
<li>Made the sid section recalculate when written and when the section recreates a serval key</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/opentechinstitute/luci-commotion/pull/190/files#diff-0">luasrc/model/cbi/commotion/security_smk.lua</a>
(11)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/opentechinstitute/luci-commotion/pull/190.patch'>https://github.com/opentechinstitute/luci-commotion/pull/190.patch</a></li>
<li><a href='https://github.com/opentechinstitute/luci-commotion/pull/190.diff'>https://github.com/opentechinstitute/luci-commotion/pull/190.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/190'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTY1NzY3NCwiZGF0YSI6eyJpZCI6MjcwMTg4MTh9fQ==--76b6a005deb860166154521a1362694c0d6285e8.gif' height='1' width='1'></p>