Fix the issue of old IP residue in static IP configuration

This commit is contained in:
BuGu
2026-01-04 18:18:00 +08:00
parent cc072ab158
commit 687dd3bfc4

View File

@@ -19,6 +19,7 @@ EOF
}
start() {
ip addr flush dev eth0
if [ -e /boot/eth.nodhcp ]; then
while IFS= read -r line || [ -n "$line" ]; do
line=$(clean_line "$line")