From e3c38f894f146aad18e14196ca39e679f35bf19f Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Sun, 25 Feb 2018 22:25:31 +0100 Subject: 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 --- scull/scull_load | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scull/scull_load') diff --git a/scull/scull_load b/scull/scull_load index 0da1378..2ef6a54 100755 --- a/scull/scull_load +++ b/scull/scull_load @@ -13,7 +13,7 @@ fi # invoke insmod with all arguments we got # and use a pathname, as insmod doesn't look in . by default -/sbin/insmod ./$module.ko $* || exit 1 +insmod ./$module.ko $* || exit 1 # retrieve major number major=$(awk "\$2==\"$module\" {print \$1}" /proc/devices) -- cgit v1.2.1-18-gbd029