kmod_modprobe: fix handling of remove commands
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 19 Dec 2011 04:18:14 +0000 (02:18 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 19 Dec 2011 11:35:43 +0000 (09:35 -0200)
commit9bf60d21f3460cc4deb14839563c320d4bbcf6fa
tree8debed27311ce8f1da9dcb4f1b6c4980929f91a3
parent9dec24462d5bdf0ed852493f28b81757f863ef48
kmod_modprobe: fix handling of remove commands

The check for remove/install commands must be before the ignore_loaded
check because we will actually run something instead of
removing/inserting a module and the modname might not correspond to a
real module. Otherwise a fake module like "remove removeme echo 'bla'"
would not work.

This also keeps compatibility with modprobe.
tools/kmod-modprobe.c