--- a/modutils/insmod.c 2004-09-02 16:03:25.000000000 -0700 +++ a/modutils/insmod.c 2005-02-14 14:03:02.000000000 -0800 @@ -3664,12 +3664,6 @@ extern int insmod_main( int argc, char * case 'k': /* module loaded by kerneld, auto-cleanable */ flag_autoclean = 1; break; - case 's': /* log to syslog */ - /* log to syslog -- not supported */ - /* but kernel needs this for request_module(), */ - /* as this calls: modprobe -k -s -- */ - /* so silently ignore this flag */ - break; case 'v': /* verbose output */ flag_verbose = 1; break; --- a/modutils/modprobe.c 2004-09-24 02:18:55.000000000 -0700 +++ a/modutils/modprobe.c 2005-02-14 14:04:54.000000000 -0800 @@ -400,15 +400,26 @@ static int mod_process ( struct mod_list *lcmd = '\0'; if ( do_insert ) { if (already_loaded (list->m_name) != 1) +#ifdef CONFIG_FEATURE_2_6_MODULES + /* insmod_ng_main doesn't take command line + * options. This would make kmod module + * autoload fails. - Jean II */ + snprintf ( lcmd, sizeof( lcmd ) - 1, "insmod %s %s", + list-> m_path, list-> m_options ? + list-> m_options : "" ); +#else + /* "-s" flag not supported. Jean II */ snprintf ( lcmd, sizeof( lcmd ) - 1, "insmod %s %s %s %s %s", - do_syslog ? "-s" : "", autoclean ? "-k" : "", + autoclean ? "-k" : "", quiet ? "-q" : "", list-> m_path, list-> m_options ? list-> m_options : "" ); +#endif } else { /* modutils uses short name for removal */ if (already_loaded (list->m_name) != 0) - snprintf ( lcmd, sizeof( lcmd ) - 1, "rmmod %s %s", - do_syslog ? "-s" : "", list-> m_name ); + /* "-s" flag not supported. Jean II */ + snprintf ( lcmd, sizeof( lcmd ) - 1, "rmmod %s", + list-> m_name ); } if (*lcmd) { --- a/modutils/rmmod.c 2004-07-20 11:36:51.000000000 -0700 +++ a/modutils/rmmod.c 2005-02-14 13:55:18.000000000 -0800 @@ -65,7 +65,7 @@ extern int rmmod_main(int argc, char **a #endif /* Parse command line. */ - while ((n = getopt(argc, argv, "a")) != EOF) { + while ((n = getopt(argc, argv, "afw")) != EOF) { switch (n) { case 'w': // --wait flags &= ~O_NONBLOCK;