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'