From d0a19fe8bdf9b69a43ff10bbbd53438d41259b6c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 12 Mar 2009 16:12:37 +0100 Subject: [PATCH] use eval to allow command chains and report what we do --- linux/t_rmmod_modprobe_loop.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linux/t_rmmod_modprobe_loop.sh b/linux/t_rmmod_modprobe_loop.sh index 7999cce..8b8b391 100755 --- a/linux/t_rmmod_modprobe_loop.sh +++ b/linux/t_rmmod_modprobe_loop.sh @@ -1,6 +1,8 @@ #!/bin/sh # Nico Schottelius # Script to test if a module can be reloaded +# usage: +# example: iwlagn "sleep 0.2" mod="$1"; shift cmd="$1"; shift @@ -13,7 +15,7 @@ while true; do else modprobe -v "$mod" fi - - $cmd + echo "Calling $cmd ..." + eval $cmd done