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 --- sbull/sbull_load | 2 +- sbull/sbull_unload | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sbull') diff --git a/sbull/sbull_load b/sbull/sbull_load index 50dd26d..d4850a3 100755 --- a/sbull/sbull_load +++ b/sbull/sbull_load @@ -26,7 +26,7 @@ fi # invoke insmod with all arguments we got # and use a pathname, as newer modutils don't look in . by default -/sbin/insmod -f ./$module.ko $* || exit 1 +insmod ./$module.ko $* || exit 1 major=`cat /proc/devices | awk "\\$2==\"$module\" {print \\$1}"` diff --git a/sbull/sbull_unload b/sbull/sbull_unload index aa22dfb..821262e 100755 --- a/sbull/sbull_unload +++ b/sbull/sbull_unload @@ -3,7 +3,7 @@ module="sbull" device="sbull" # invoke rmmod with all arguments we got -/sbin/rmmod $module $* || exit 1 +rmmod $module $* || exit 1 # Remove stale nodes rm -f /dev/${device}[a-d]* /dev/${device} -- cgit v1.2.1-18-gbd029