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 --- snull/snull_load | 2 -- snull/snull_unload | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'snull') diff --git a/snull/snull_load b/snull/snull_load index 47de578..3f6627d 100755 --- a/snull/snull_load +++ b/snull/snull_load @@ -1,7 +1,5 @@ #!/bin/sh -export PATH=/sbin:/bin - # Use a pathname, as new modutils don't look in the current dir by default insmod ./snull.ko $* ifconfig sn0 local0 diff --git a/snull/snull_unload b/snull/snull_unload index a857ac9..7cc3a39 100755 --- a/snull/snull_unload +++ b/snull/snull_unload @@ -1,5 +1,5 @@ #!/bin/sh -/sbin/ifconfig sn0 down -/sbin/ifconfig sn1 down -/sbin/rmmod snull +ifconfig sn0 down +ifconfig sn1 down +rmmod snull -- cgit v1.2.1-18-gbd029