config file: don't print warning if config file cannot be opened
This commit is contained in:
parent
02d044c391
commit
5b27d8408c
2 changed files with 12 additions and 0 deletions
10
dist/ifupdown-ng.conf.example
vendored
Normal file
10
dist/ifupdown-ng.conf.example
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
# This is an example configuration file for ifupdown-ng, which allows
|
||||
# the system administrator to configure the behaviour of ifupdown-ng.
|
||||
#
|
||||
# The settings specified here are the defaults of ifupdown-ng.
|
||||
|
||||
# allow_addon_scripts:
|
||||
# Enable support for /etc/if-X.d addon scripts. These are used for
|
||||
# compatibility with legacy setups, and may be disabled for performance
|
||||
# improvements in setups where only ifupdown-ng executors are used.
|
||||
allow_addon_scripts = 1
|
|
@ -52,8 +52,10 @@ lif_config_load(const char *filename)
|
|||
|
||||
if (fd == NULL)
|
||||
{
|
||||
#if 0
|
||||
fprintf(stderr, "ifupdown-ng: cannot open config %s: %s\n",
|
||||
filename, strerror(errno));
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue