mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-12-22 12:23:35 +00:00
remove root password for debugging
This commit is contained in:
parent
449e3eb652
commit
9783c33d2a
@ -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
|
||||
|
||||
|
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user