summaryrefslogtreecommitdiffstats
path: root/toolbox/rmmod.c
diff options
context:
space:
mode:
authorTanguy Pruvot <tanguy.pruvot@gmail.com>2011-09-01 13:16:18 +0200
committerTanguy Pruvot <tanguy.pruvot@gmail.com>2012-01-12 20:44:02 +0100
commitec4db51f88401ecf09769511e3c9deb58d721184 (patch)
tree3db8676b32f18af558996b8b24ffb001d9cc6f58 /toolbox/rmmod.c
parentf90b0e04a61ab3bf5239afb2f7157aabe5fbca8f (diff)
downloadsystem_core-ec4db51f88401ecf09769511e3c9deb58d721184.zip
system_core-ec4db51f88401ecf09769511e3c9deb58d721184.tar.gz
system_core-ec4db51f88401ecf09769511e3c9deb58d721184.tar.bz2
rmmod: fix full path syntax
rmmod /system/modules/multitouch.ko rmmod: delete_module '/multitouch' failed (errno 2) Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Diffstat (limited to 'toolbox/rmmod.c')
-rw-r--r--toolbox/rmmod.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolbox/rmmod.c b/toolbox/rmmod.c
index 7e10c06..25257cc 100644
--- a/toolbox/rmmod.c
+++ b/toolbox/rmmod.c
@@ -25,6 +25,8 @@ int rmmod_main(int argc, char **argv)
modname = strrchr(argv[1], '/');
if (!modname)
modname = argv[1];
+ else modname++;
+
dot = strchr(argv[1], '.');
if (dot)
*dot = '\0';