OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
systemd
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/10/2024 09:42:49 AM
rwxr-xr-x
📄
kbd-model-map
3.48 KB
01/28/2018 03:58:17 PM
rw-r--r--
📄
language-fallback-map
218 bytes
01/28/2018 03:58:17 PM
rw-r--r--
📄
tmp.mount
740 bytes
03/02/2023 12:58:02 PM
rw-r--r--
📄
write_persistent_net_s390x_virtio
1.02 KB
03/02/2023 12:58:02 PM
rwxr-xr-x
Editing: write_persistent_net_s390x_virtio
Close
#!/bin/sh set -e # # udevd since 232-20 learned to generate stable interface names for network # interfaces in kvm/qemu. However, existing machines upgrading will be using # the ethX names instead. The most risk-averse action is to encode # "persistent-net-rules" like rules to keep the ethX names on upgrades, since # the interface names (ethX) may be in use not only in /etc/network/interfaces # but in other configurations too (daemons, firewalls, etc). # # This is a one time action, and can be removed after the next stable & LTS # releases. (~ May 2018) # rulesfile=/etc/udev/rules.d/70-persistent-net.rules if [ `uname -m` != 's390x' ] then exit 0 fi if [ `systemd-detect-virt` != 'kvm' ] then exit 0 fi if [ -f $rulesfile ] then exit 0 fi for interface in /sys/class/net/eth* do [ -d $interface ] || continue name=$(basename $interface) address=$(cat $interface/address) cat <<EOF >>$rulesfile SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="$address", KERNEL=="eth*", NAME="$name" EOF done