From: Lucas De Marchi Date: Wed, 11 Jan 2012 02:28:12 +0000 (-0200) Subject: config: deprecate 'include' and 'config' commands X-Git-Tag: v4~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ad5dd083750edcd56adf6f1e88445494c57dc51;p=thirdparty%2Fkmod.git config: deprecate 'include' and 'config' commands --- diff --git a/TODO b/TODO index 5dd906d5..2d45006c 100644 --- a/TODO +++ b/TODO @@ -83,6 +83,9 @@ modprobe * kmod-modprobe doesn't parse configuration files whose name don't end on '.alias' or '.conf'. modprobe used to warn about these files. +* kmod-modprobe doesn't parse 'config' and 'include' commands in configuration + files. + depmod ------ diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c index 49e33e77..a5c6d114 100644 --- a/libkmod/libkmod-config.c +++ b/libkmod/libkmod-config.c @@ -576,7 +576,7 @@ static int kmod_config_parse(struct kmod_config *config, int fd, softdeps); } else if (streq(cmd, "include") || streq(cmd, "config")) { - INFO(ctx, "%s: command %s not implemented yet\n", + ERR(ctx, "%s: command %s is deprecated and not parsed anymore\n", filename, cmd); } else { syntax_error: