summaryrefslogtreecommitdiffstats
path: root/scullc/scullc_unload
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2018-02-25 22:25:31 +0100
committerJavier Martinez Canillas <javier@dowhile0.org>2018-02-25 22:25:37 +0100
commite3c38f894f146aad18e14196ca39e679f35bf19f (patch)
tree4ce196fedcbe9e451ea18f85dccecfd14afbd264 /scullc/scullc_unload
parentc400d261b75b51eed26bd851e4458c4f6eda8eff (diff)
downloadldd3-e3c38f894f146aad18e14196ca39e679f35bf19f.tar.gz
Don't use absolute path for commands in load/unload scripts
Just let the shell lookup from the user's $PATH since some tools may not be installed in the absolute path used in the scripts. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Diffstat (limited to 'scullc/scullc_unload')
-rw-r--r--scullc/scullc_unload2
1 files changed, 1 insertions, 1 deletions
diff --git a/scullc/scullc_unload b/scullc/scullc_unload
index bb91f71..29a07d7 100644
--- a/scullc/scullc_unload
+++ b/scullc/scullc_unload
@@ -3,7 +3,7 @@ module="scullc"
device="scullc"
# invoke rmmod with all arguments we got
-/sbin/rmmod $module $* || exit 1
+rmmod $module $* || exit 1
# remove nodes
rm -f /dev/${device}[0-3] /dev/${device}