]> git.ipfire.org Git - thirdparty/kmod.git/commit
kmod_modprobe: properly handle install/remove commands
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 19 Dec 2011 04:26:34 +0000 (02:26 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 19 Dec 2011 14:17:44 +0000 (12:17 -0200)
commite5e2a683f7381f6dde4b1bda820089e2b22111c3
treec806d42325eb6eaadf24f52dac26f7a8cb3049d8
parent9bf60d21f3460cc4deb14839563c320d4bbcf6fa
kmod_modprobe: properly handle install/remove commands

Handle install/remove commands just like modprobe does. Test configure
file:

install installme echo "this is a install message"
remove  removeme echo "this is a remove message"

Tests:

$ ./tools/kmod-modprobe installme
this is a install message

$ ./tools/kmod-modprobe -r removeme
this is a remove message

$ ./tools/kmod-modprobe removeme
FATAL: Module removeme not found.

./tools/kmod-modprobe -r installme
FATAL: Module installme not found.
TODO
tools/kmod-modprobe.c