remove root password for debugging

This commit is contained in:
Alfonso Gamboa 2022-06-12 01:15:17 -07:00
parent 449e3eb652
commit 9783c33d2a
2 changed files with 6 additions and 0 deletions

View File

@ -126,6 +126,11 @@ sed -i '/system\/\lib/s/$/:\/opt\/wz_mini\/lib/' /opt/wz_mini/tmp/.storage/rcS
echo "replace stock password"
cp /opt/wz_mini/etc/shadow /opt/wz_mini/tmp/.storage/shadow
if [[ "$DEBUG_PASSWORD" == "true" ]]; then
sed -i 's/:[^:]*/:/' /opt/wz_mini/tmp/.storage/shadow
fi
mount --bind /opt/wz_mini/tmp/.storage/shadow /etc/shadow
chmod 400 /etc/shadow

View File

@ -79,6 +79,7 @@ ENABLE_MP4_WRITE="false"
#drops you to a shell via serial, doesn't load app_init.sh
DEBUG_ENABLED="false"
DEBUG_INITRAMFS_ENABLED="false"
DEBUG_PASSWORD="false"
#####SCRIPTING#####
CUSTOM_SCRIPT_PATH=""