try to load af_packet module before up

This commit is contained in:
iceBear67
2026-06-22 13:47:05 +08:00
parent 31c2a23dbf
commit 54deda0210
2 changed files with 2 additions and 1 deletions

View File

@@ -3,4 +3,5 @@ iface lo inet loopback
auto eth0
iface eth0 inet dhcp
pre-up modprobe af_packet
post-up ip route del default || true; ip route add default via GATEWAY_ADDRESS