core: 显示网卡稳定时间

This commit is contained in:
bin456789
2026-09-06 11:31:38 +08:00
parent d44c2017fd
commit 42f932b856
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -14,6 +14,10 @@ Before=network.target
[Service]
Type=oneshot
StandardOutput=journal+console
StandardError=journal+console
ExecStart=/usr/bin/env bash /fix-eth-name.sh
ExecStart=/usr/bin/env rm -f /fix-eth-name.sh
ExecStart=/usr/bin/env rm -f /etc/systemd/system/fix-eth-name.service
+2
View File
@@ -49,6 +49,8 @@ while true; do
old_state=$new_state
echo "Waiting for the NICs to be stable (${stable_count}s/10s)..."
# 稳定 10 秒后退出循环
if $has_eth && [ "$stable_count" -ge 10 ]; then
break