From: Wolfgang Bumiller Date: Thu, 25 Jun 2015 09:54:27 +0000 (+0200) Subject: write_etc_network_interfaces: updated header comment X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=9d27ef418c5fa1b72b23795f633bb72574e749bd;ds=sidebyside write_etc_network_interfaces: updated header comment The header now mentions that the file is auto-generated and should not be tempered with directly. It now recommends to add custom network configurations via source/source-directory lines. --- diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index e773cf4..b3f45ae 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -1197,7 +1197,19 @@ sub write_etc_network_interfaces { } } - my $raw = "# network interface settings\n"; + my $raw = <<'NETWORKDOC'; +# network interface settings; autogenerated +# Please do NOT modify this file directly, unless you know what +# you're doing. +# +# If you want to manage part of the network configuration manually, +# please utilize the 'source' or 'source-directory' directives to do +# so. +# PVE will preserve these directives, but will NOT its network +# configuration from sourced files, so do not attempt to move any of +# the PVE managed interfaces into external files! + +NETWORKDOC my $printed = {};