qubes-installer-qubes-os/anaconda/dracut/anaconda-ifdown
Marek Marczykowski-Górecki 6bc5671491
anaconda: update to 25.20.9-1
Apply:
  git diff --full-index --binary anaconda-23.19.10-1..anaconda-25.20.9-1

And resolve conflicts.

QubesOS/qubes-issues#2574
2017-02-14 02:36:20 +01:00

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