mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
generalize admin password mechanism
This commit is contained in:
parent
a414a9d714
commit
a2773f700b
@ -15,7 +15,10 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# set root and admin passwords
|
# set root and admin passwords
|
||||||
|
password=""
|
||||||
|
if [ -x /etc/init.d/adminpw ]; then
|
||||||
password=$(/etc/init.d/adminpw)
|
password=$(/etc/init.d/adminpw)
|
||||||
|
fi
|
||||||
msg_begin "Setting root password"
|
msg_begin "Setting root password"
|
||||||
|
|
||||||
rm -f /data/etc/shadow+
|
rm -f /data/etc/shadow+
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -f /data/etc/motion.conf ]; then
|
# echo your admin password here
|
||||||
cat /data/etc/motion.conf | grep admin_password | grep -v _hash | cut -d ' ' -f 3-
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user