mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 10:01:38 +00:00
inotify: network: detect "allow-auto" as "auto" synonym
> Note that "allow-auto" and "auto" are synonyms. -- man 5 interfaces Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
75a2a1c658
commit
0dcace5a6e
@ -906,7 +906,7 @@ sub __read_etc_network_interfaces {
|
|||||||
next if $line =~ m/^\s*#/;
|
next if $line =~ m/^\s*#/;
|
||||||
next if $line =~ m/^\s*(allow-hotplug)\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);
|
$ifaces->{$_}->{autostart} = 1 for split (/\s+/, $2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user