+
+ PVE::INotify::write_file('interfaces', $configdata);
+
-+ my $config = PVE::INotify::read_file('interfaces', 1);
++ $config = PVE::INotify::read_file('interfaces', 1);
+
-+ if(defined($config->{changes})) {
++ if (defined($config->{changes})) {
+ print $config->{changes};
+ print "network config changes has been detected for ifupdown2 compatibility and generated in /etc/network/interfaces.new\n";
+ }
-+ '
++ ' || true
+}
+
case "$1" in
+
+ PVE::INotify::write_file('interfaces', $configdata);
+
-+ my $config = PVE::INotify::read_file('interfaces', 1);
++ $config = PVE::INotify::read_file('interfaces', 1);
+
-+ if(defined($config->{changes})) {
++ if (defined($config->{changes})) {
+ print $config->{changes};
+ print "network config changes has been detected for ifupdown1 compatibility and generated in /etc/network/interfaces.new\n";
+ }
-+ '
++ ' || true
+}
+
case "$1" in