]> git.proxmox.com Git - pve-common.git/commitdiff
inotify: network: detect "allow-auto" as "auto" synonym
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 24 Sep 2021 09:52:54 +0000 (11:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 24 Sep 2021 10:56:09 +0000 (12:56 +0200)
> Note that "allow-auto" and "auto" are synonyms.
-- man 5 interfaces

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/INotify.pm

index fb5116f6f61d0e088d138c6b24f5b7f534b617d6..65fa25f2e94032c89ab0f3138803385e79849368 100644 (file)
@@ -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);