diff options
Diffstat (limited to 'runtime/probes/shellsnoop/stp')
-rwxr-xr-x | runtime/probes/shellsnoop/stp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/probes/shellsnoop/stp b/runtime/probes/shellsnoop/stp index 14e8f47a..4a278ac2 100755 --- a/runtime/probes/shellsnoop/stp +++ b/runtime/probes/shellsnoop/stp @@ -7,8 +7,8 @@ else exit fi -RELAYFS=`lsmod | grep relayfs |awk '{print $1}'` -if [ "$RELAYFS" != "relayfs" ] +RELAYFS=`grep " relayfs_mmap" /proc/kallsyms` +if [ "$RELAYFS" == "" ] then /sbin/insmod ../../relayfs/relayfs.ko fi @@ -47,5 +47,3 @@ fi # no screen or log #../../stpd/stpd -q -b 8192 -n 4 -# stpd will remove module when it exits -#/sbin/rmmod $modulename |