create folder
This commit is contained in:
parent
2d76fd754c
commit
850f5c90af
@ -14,7 +14,7 @@ interfaces=$(ls /sys/class/net | grep -Ev '^(lo|tap|vlan|vmbr|bonding|fw|veth)')
|
||||
# Für jedes Interface ein systemd-Netzwerk-File erstellen
|
||||
for interface in $interfaces; do
|
||||
mac_address=$(cat /sys/class/net/$interface/address)
|
||||
file="$output_dir/10-$interface.link"
|
||||
file="$output_dir/10-net$interface.link"
|
||||
cat <<EOF > $file
|
||||
[Match]
|
||||
MACAddress=$mac_address
|
Loading…
x
Reference in New Issue
Block a user