delete naming
This commit is contained in:
parent
91d87e4fa9
commit
108e236433
@ -36,75 +36,6 @@ if [ ${#interfaces[@]} -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# echo "Die Links für die Interfacenamen werden erstellt:"
|
|
||||||
# # Hier werden die Interface-Namen mit ihren Bussen gelinkt -> einheitlich, persistente Bennenung
|
|
||||||
# create_link_file() {
|
|
||||||
# local file="$name_dir/$1"
|
|
||||||
# local content="$2"
|
|
||||||
|
|
||||||
# if [[ -f "$file" ]]; then
|
|
||||||
# if diff -q <(printf "%s\n" "$content") "$file" >/dev/null; then
|
|
||||||
# echo "✔ $file existiert bereits und ist korrekt"
|
|
||||||
# return
|
|
||||||
# else
|
|
||||||
# echo "↺ $file existiert, Inhalt unterscheidet sich – aktualisiere"
|
|
||||||
# fi
|
|
||||||
# else
|
|
||||||
# echo "➕ $file existiert nicht – erstelle"
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# printf "%s\n" "$content" > "$file"
|
|
||||||
# }
|
|
||||||
|
|
||||||
# # # Erstelle Links für alle Interfaces
|
|
||||||
# # for iface in "${interfaces[@]}"; do
|
|
||||||
# # create_link_file "10-$iface.link" \
|
|
||||||
# # "[Match]
|
|
||||||
# # Path=pci-0000:06:00.1
|
|
||||||
|
|
||||||
# # [Link]
|
|
||||||
# # Name=$iface"
|
|
||||||
# # done
|
|
||||||
|
|
||||||
# create_link_file "10-eno2.link" \
|
|
||||||
# "[Match]
|
|
||||||
# Path=pci-0000:06:00.1
|
|
||||||
|
|
||||||
# [Link]
|
|
||||||
# Name=eno2"
|
|
||||||
|
|
||||||
# create_link_file "10-eno3.link" \
|
|
||||||
# "[Match]
|
|
||||||
# Path=pci-0000:06:00.2
|
|
||||||
|
|
||||||
# [Link]
|
|
||||||
# Name=eno3"
|
|
||||||
|
|
||||||
# create_link_file "10-eno4.link" \
|
|
||||||
# "[Match]
|
|
||||||
# Path=pci-0000:06:00.3
|
|
||||||
|
|
||||||
# [Link]
|
|
||||||
# Name=eno4"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "Die $iface_file wird angepasst:"
|
echo "Die $iface_file wird angepasst:"
|
||||||
|
|
||||||
# Funktion zum Auskommentieren der gesamten Datei
|
# Funktion zum Auskommentieren der gesamten Datei
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user