diff --git a/board/common/overlay/etc/motioneye.conf b/board/common/overlay/etc/motioneye.conf index 774921b3c1..4a633dc097 100644 --- a/board/common/overlay/etc/motioneye.conf +++ b/board/common/overlay/etc/motioneye.conf @@ -21,4 +21,5 @@ enable_update true smtp_timeout 60 zip_timeout 500 add_remove_cameras true +password_hook /usr/libexec/meyepasswd diff --git a/board/common/overlay/usr/libexec/meyepasswd b/board/common/overlay/usr/libexec/meyepasswd new file mode 100755 index 0000000000..b59b1314ed --- /dev/null +++ b/board/common/overlay/usr/libexec/meyepasswd @@ -0,0 +1,5 @@ +#!/bin/bash + +test "$MEYE_USERNAME" == "admin" || exit 0 +PASSWORD="$MEYE_PASSWORD" /usr/sbin/adminpasswd +