From 9cd39ef2158b3c084c89b074ce8be5cc2c78d9dc Mon Sep 17 00:00:00 2001 From: Alfonso Gamboa Date: Wed, 13 Apr 2022 14:12:27 -0700 Subject: [PATCH] fix dropbear ssh --- SD_ROOT/wz_mini/etc/init.d/v3_init.sh | 4 +++- SD_ROOT/wz_mini/run_mmc.sh | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 b0a3db1..df0b345 100755 --- a/SD_ROOT/wz_mini/etc/init.d/v3_init.sh +++ b/SD_ROOT/wz_mini/etc/init.d/v3_init.sh @@ -14,11 +14,13 @@ echo ' |______| ' +set -x + mount -t tmpfs /tmp cp /opt/wz_mini/etc/shadow /tmp/.shadow mount --bind /tmp/.shadow /etc/shadow chmod 400 /etc/shadow -{ sleep 30; /media/mmc/wz_mini/run_mmc.sh > /media/mmc/wz_mini/wz_mini_hacks.log; } & +{ sleep 30; /media/mmc/wz_mini/run_mmc.sh > /media/mmc/wz_mini/log/wz_mini_hacks.log; } & /linuxrc diff --git a/SD_ROOT/wz_mini/run_mmc.sh b/SD_ROOT/wz_mini/run_mmc.sh index fdab5db..1a7a4d8 100755 --- a/SD_ROOT/wz_mini/run_mmc.sh +++ b/SD_ROOT/wz_mini/run_mmc.sh @@ -1,12 +1,16 @@ #!/bin/sh +set -x + ##DO NOT ENABLE FW UPGRADE. FW UPGRADE CAN POTENTIALLY CORRUPT THE KERNEL REQUIRING YOU TO REFLASH THE STOCK FIRMWARE. DISABLE_FW_UPGRADE="true" + HOSTNAME="WCV3_spare_test" ENABLE_USB_ETH="false" ENABLE_USB_DIRECT="false" echo "run_mmc.sh start" > /dev/kmsg +mkdir /configs/.ssh if [[ "$ENABLE_USB_ETH" == "true" ]]; then ifconfig eth0 down