From 151f4ded8d5d6a65b50457b87238193035c3c221 Mon Sep 17 00:00:00 2001 From: adminer Date: Fri, 24 Apr 2026 22:27:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20bkp=5Fuci.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bkp_uci.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bkp_uci.sh b/bkp_uci.sh index 0b3480b..eec0278 100644 --- a/bkp_uci.sh +++ b/bkp_uci.sh @@ -13,6 +13,10 @@ ROUTER_PASS=556667777 BACKUP_NAME="openwrt-backup-$(date +%F).tar.gz" +if ! command -v sshpass &> /dev/null; then + sudo apt update && sudo apt install -y sshpass +fi + echo "[*] Creating backup on router..." sshpass -p "$ROUTER_PASS" ssh -o StrictHostKeyChecking=no $ROUTER_USER@$ROUTER_HOST << 'EOF'