diff options
author | Javier Martinez Canillas <javier@dowhile0.org> | 2018-02-25 22:25:31 +0100 |
---|---|---|
committer | Javier Martinez Canillas <javier@dowhile0.org> | 2018-02-25 22:25:37 +0100 |
commit | e3c38f894f146aad18e14196ca39e679f35bf19f (patch) | |
tree | 4ce196fedcbe9e451ea18f85dccecfd14afbd264 /scullv | |
parent | c400d261b75b51eed26bd851e4458c4f6eda8eff (diff) | |
download | ldd3-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 'scullv')
-rwxr-xr-x | scullv/scullv_load | 2 | ||||
-rwxr-xr-x | scullv/scullv_unload | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scullv/scullv_load b/scullv/scullv_load index 9b26276..9ff4941 100755 --- a/scullv/scullv_load +++ b/scullv/scullv_load @@ -15,7 +15,7 @@ rm -f /dev/${device}? # 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/scullv/scullv_unload b/scullv/scullv_unload index 13608e8..840217f 100755 --- a/scullv/scullv_unload +++ b/scullv/scullv_unload @@ -3,7 +3,7 @@ module="scullv" device="scullv" # 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} |