1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <?xml-stylesheet type="text/xsl" href="helma.xsl"?>
3 <xmlroot xmlns:hop="http://www.helma.org/docs/guide/features/database">
4 <hopobject id="3170" name="restartdropbear" prototype="Page" created="1381945247902" lastModified="1381945763826">
5 <hop:parent idref="2765" prototyperef="Page"/>
6 <is_xhtml type="boolean">true</is_xhtml>
7 <http_remotehost>98.250.142.42</http_remotehost>
8 <http_language>en-US,en;q=0.8</http_language>
9 <uri>restartdropbear</uri>
10 <http_browser>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36</http_browser>
11 <time type="date">16.10.2013 12:49:23 CDT</time>
12 <hopsession>98.250.142.1mo5k6ma08qh6</hopsession>
13 <body><script>
\r
14 onbonescriptinit = function() {
\r
15 shellRun('code');
\r
18 <script src="/static/bonescript-demo.js"></script>
\r
19 <div id='side-menu' class="t3_sidebar">
\r
20 <ul class="left-menu"><strong>Navigation</strong>
\r
21 <li><a href="/static/side-menu.html">Menu contents</a></li>
\r
24 <div class="t3_content_1"><div id='connect-status'></div><div id="content_child">
\r
25 <h1>Restart Dropbear</h1>
\r
27 This script is a quick hack to restart the Dropbear ssh server.
\r
29 <h2>Output</h2>
\r
30 <div id='console-output' style='height:300px;'></div>
\r
31 <h2>Source</h2>
\r
32 <pre id='code' style='height:200px;'>
\r
33 systemctl enable dropbear.socket
\r
34 systemctl stop dropbear.service
\r
35 systemctl restart dropbear.socket
\r
36 systemctl status dropbear.socket
\r
39 <pre id='code' style='height:200px;'>
\r
40 var b=require('bonescript');
\r
41 b.readTextFile('/etc/dogtag', print);
\r
43 if(x.err) console.log('Error reading /etc/dogtag');
\r
44 console.log(x.data);
\r
47 <div style="clear:both;"></div></body>
48 <pseudoparent idref="2765" prototyperef="Page"/>
49 <http_referer>http://beagleboard.org/support/bone101/restartdropbear/edit</http_referer>
50 <http_host>beagleboard.org</http_host>
51 <user>jkridner@gmail.com</user>