mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-01-22 20:17:01 +00:00
fix dropbear ssh
This commit is contained in:
parent
42d37cff1e
commit
9cd39ef215
@ -14,11 +14,13 @@ echo '
|
|||||||
|______|
|
|______|
|
||||||
'
|
'
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
mount -t tmpfs /tmp
|
mount -t tmpfs /tmp
|
||||||
cp /opt/wz_mini/etc/shadow /tmp/.shadow
|
cp /opt/wz_mini/etc/shadow /tmp/.shadow
|
||||||
mount --bind /tmp/.shadow /etc/shadow
|
mount --bind /tmp/.shadow /etc/shadow
|
||||||
chmod 400 /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
|
/linuxrc
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
##DO NOT ENABLE FW UPGRADE. FW UPGRADE CAN POTENTIALLY CORRUPT THE KERNEL REQUIRING YOU TO REFLASH THE STOCK FIRMWARE.
|
##DO NOT ENABLE FW UPGRADE. FW UPGRADE CAN POTENTIALLY CORRUPT THE KERNEL REQUIRING YOU TO REFLASH THE STOCK FIRMWARE.
|
||||||
DISABLE_FW_UPGRADE="true"
|
DISABLE_FW_UPGRADE="true"
|
||||||
|
|
||||||
HOSTNAME="WCV3_spare_test"
|
HOSTNAME="WCV3_spare_test"
|
||||||
ENABLE_USB_ETH="false"
|
ENABLE_USB_ETH="false"
|
||||||
ENABLE_USB_DIRECT="false"
|
ENABLE_USB_DIRECT="false"
|
||||||
|
|
||||||
echo "run_mmc.sh start" > /dev/kmsg
|
echo "run_mmc.sh start" > /dev/kmsg
|
||||||
|
mkdir /configs/.ssh
|
||||||
|
|
||||||
if [[ "$ENABLE_USB_ETH" == "true" ]]; then
|
if [[ "$ENABLE_USB_ETH" == "true" ]]; then
|
||||||
ifconfig eth0 down
|
ifconfig eth0 down
|
||||||
|
Loading…
Reference in New Issue
Block a user