depmod: fix tabs in help output
[module-init-tools.git] / tests / test-rmmod / 02namefix.sh
blob08eb02e75601b0221a9e21052668a7cef5dcc8b2
1 #! /bin/sh
3 mkdir -p tests/tmp/proc
5 # Old style
6 echo 'foo_bar 100 0' > tests/tmp/proc/modules
8 [ "`rmmod foo_bar`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]
10 [ "`rmmod /lib/modules/$MODTEST_UNAME/kernel/foo_bar.o`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]
12 [ "`rmmod /lib/modules/$MODTEST_UNAME/kernel/foo_bar.ko`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]
14 [ "`rmmod /lib/modules/$MODTEST_UNAME/kernel/foo-bar.ko`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]
16 [ "`rmmod foo-bar`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]