summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2019-05-11 20:28:00 +0200
committerBjørn Mork <bjorn@mork.no>2019-05-11 20:28:00 +0200
commitc0fbd6dc6bbbad38b97595f2469eb7fabd250760 (patch)
tree06d2233d8a7854de03c94d8915c14874deab1ed9
parent56af769f3a02791d67d367a2dc1187d1bc61d1c8 (diff)
WiP
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--.gitignore2
-rwxr-xr-xdcs8000lh-configure.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 7cecdf0..c758f4d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
*~
.#*
#*
+version
+opt.squashfs
diff --git a/dcs8000lh-configure.py b/dcs8000lh-configure.py
index 131462f..8f223d1 100755
--- a/dcs8000lh-configure.py
+++ b/dcs8000lh-configure.py
@@ -9,7 +9,7 @@ import base64
import hashlib
from bluepy.btle import Peripheral
-VERSION = "0.01"
+VERSION = "9.9.9-bmork"
# helper converting "K=V;L=W;.." strings to { "K": "V", "L": "W". ...} dicts
def kv2dict(kvstr, sep=";"):
@@ -141,8 +141,8 @@ if __name__ == '__main__':
if args.telnetd:
print("Adding the 'admin' user as an alias for 'root'")
cam.run_command("grep -Eq ^admin: /etc/passwd||echo admin:x:0:0::/:/bin/sh >>/etc/passwd")
- print("Setting the 'admin' user passwrd to '%s'"% args.pincode)
- cam.run_command("echo admin:" + args.pincode + "|chpasswd")
+ print("Setting the 'admin' user password to '%s'"% args.pincode)
+ cam.run_command("grep -Eq ^admin:x: /etc/passwd&&echo admin:" + args.pincode + "|chpasswd")
print("Starting telnetd")
cam.run_command("pidof telnetd||telnetd")
if args.lighttpd: