소스 검색

change dropbear config dir detect

Alfonso Gamboa 4 년 전
부모
커밋
910fe60dcb
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  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