generalize admin password mechanism

This commit is contained in:
Calin Crisan 2017-05-28 19:50:08 +03:00
parent a414a9d714
commit a2773f700b
2 changed files with 5 additions and 4 deletions

View File

@ -15,7 +15,10 @@ case "$1" in
fi
# set root and admin passwords
password=$(/etc/init.d/adminpw)
password=""
if [ -x /etc/init.d/adminpw ]; then
password=$(/etc/init.d/adminpw)
fi
msg_begin "Setting root password"
rm -f /data/etc/shadow+

View File

@ -1,6 +1,4 @@
#!/bin/bash
if [ -f /data/etc/motion.conf ]; then
cat /data/etc/motion.conf | grep admin_password | grep -v _hash | cut -d ' ' -f 3-
fi
# echo your admin password here