mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-05-21 03:00:25 +00:00
Fix Bridge detection (#4522)
This commit is contained in:
parent
7d2e8eaaad
commit
4de228d41b
@ -538,7 +538,7 @@ advanced_settings() {
|
||||
iface_indexes_tmpfile=$(mktemp -q -u '.iface-XXXX')
|
||||
|
||||
(grep -Pn '^\s*iface' "${iface_filepath}" | cut -d':' -f1 && wc -l "${iface_filepath}" | cut -d' ' -f1) |
|
||||
awk 'FNR==1 {line=$0; next} {print line":"$0-1; line=$0}' >"${iface_indexes_tmpfile}"
|
||||
awk 'FNR==1 {line=$0; next} {print line":"$0-1; line=$0}' >"${iface_indexes_tmpfile}" || true
|
||||
|
||||
if [ -f "${iface_indexes_tmpfile}" ]; then
|
||||
while read -r pair; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user