summaryrefslogtreecommitdiffstats
path: root/runtime/probes/test4/stp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/probes/test4/stp')
-rwxr-xr-xruntime/probes/test4/stp10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/probes/test4/stp b/runtime/probes/test4/stp
index d10fcaab..185a5905 100755
--- a/runtime/probes/test4/stp
+++ b/runtime/probes/test4/stp
@@ -24,13 +24,19 @@ then
mount -t relayfs relayfs /mnt/relay
fi
-/sbin/insmod $modulename
+STP_CONTROL=`lsmod | grep stp_control |awk '{print $1}'`
+if [ "$STP_CONTROL" != "stp_control" ]
+then
+ /sbin/insmod ../../transport/stp-control.ko
+fi
+
+#/sbin/insmod $modulename
# print to screen only, 4 8K buffers
#../../stpd/stpd -p -b 8192 -n 4
# print to screen and log to files, 4 8K buffers
-../../stpd/stpd -b 8192 -n 4
+../../stpd/stpd -b 8192 -n 4 $modulename
# no screen or log
#../../stpd/stpd -q -b 8192 -n 4