Browse Source

change dropbear config dir detect

Alfonso Gamboa 4 years ago
parent
commit
910fe60dcb
1 changed files with 7 additions and 1 deletions
  1. 7 1
      SD_ROOT/wz_mini/run_mmc.sh

+ 7 - 1
SD_ROOT/wz_mini/run_mmc.sh

@@ -10,7 +10,13 @@ ENABLE_USB_ETH="false"
 ENABLE_USB_DIRECT="false"
 
 echo  "run_mmc.sh start" > /dev/kmsg
-mkdir /configs/.ssh
+
+if [[ -d /configs/.ssh ]]; then
+	echo "dropbear ssh config dir present"
+else
+	echo "dropbear ssh config dir not present, creating"
+	mkdir /configs/.ssh
+fi
 
 if [[ "$ENABLE_USB_ETH" == "true" ]]; then
         ifconfig eth0 down