From 3f69ffd6ea02d33520ff51d4c78add77d8cce852 Mon Sep 17 00:00:00 2001 From: Anonymous <> Date: Sat, 22 Feb 2025 18:40:45 +0800 Subject: [PATCH] refactor: rename option --static-ip to --static-ipv4 --- debi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debi.sh b/debi.sh index 4b26d28..79ab351 100755 --- a/debi.sh +++ b/debi.sh @@ -274,7 +274,7 @@ while [ $# -gt 0 ]; do mirror_host=mirrors.tuna.tsinghua.edu.cn ntp=time.amazonaws.cn ;; - --static-ip) + --static-ipv4) ip=$(ip r get 1.1.1.1 | awk '/src/ {print $7}') gateway=$(ip r get 1.1.1.1 | awk '/via/ {print $3}') _cidr=$(ip -o -f inet addr show | grep -w "$ip" | awk '{print $4}' | cut -d'/' -f2)