6bc5671491
Apply: git diff --full-index --binary anaconda-23.19.10-1..anaconda-25.20.9-1 And resolve conflicts. QubesOS/qubes-issues#2574
17 lines
389 B
Bash
Executable File
17 lines
389 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Turn off given network interface and remove all its flags from Dracut.
|
|
#
|
|
# Author: Jiri Konecny
|
|
#
|
|
|
|
netif="$1"
|
|
# ip down/flush ensures that routing info goes away as well
|
|
ip link set $netif down
|
|
ip addr flush dev $netif
|
|
rm -f -- /tmp/*.$netif.*
|
|
if [ -e /sys/class/net/$netif/address ]; then
|
|
address=$(cat /sys/class/net/$netif/address)
|
|
rm -f -- /tmp/*.$address.*
|
|
fi
|