From 0dcace5a6e4a2e04695e52c20a8d2c8d86eeca59 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 24 Sep 2021 11:52:54 +0200 Subject: [PATCH] inotify: network: detect "allow-auto" as "auto" synonym > Note that "allow-auto" and "auto" are synonyms. -- man 5 interfaces Signed-off-by: Thomas Lamprecht --- src/PVE/INotify.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index fb5116f..65fa25f 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -906,7 +906,7 @@ sub __read_etc_network_interfaces { next if $line =~ m/^\s*#/; next if $line =~ m/^\s*(allow-hotplug)\s+(.*)$/; - if ($line =~ m/^\s*(auto|allow-ovs)\s+(.*)$/) { + if ($line =~ m/^\s*(allow-auto|auto|allow-ovs)\s+(.*)$/) { $ifaces->{$_}->{autostart} = 1 for split (/\s+/, $2); -- 2.39.2