diff --git a/SD_ROOT/wz_mini/etc/init.d/v3_init.sh b/SD_ROOT/wz_mini/etc/init.d/v3_init.sh index 9c01db9..6245aa7 100755 --- a/SD_ROOT/wz_mini/etc/init.d/v3_init.sh +++ b/SD_ROOT/wz_mini/etc/init.d/v3_init.sh @@ -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 diff --git a/SD_ROOT/wz_mini/wz_mini.conf b/SD_ROOT/wz_mini/wz_mini.conf index 6811685..ded368b 100644 --- a/SD_ROOT/wz_mini/wz_mini.conf +++ b/SD_ROOT/wz_mini/wz_mini.conf @@ -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=""