From 3596cbca20e5ef0f110ffd342db6d0e4278e81ba Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 10 Apr 2007 13:28:51 +0000 Subject: 2007-04-10 Martin Hunt * stp_check.in: Fixes to make sure debugfs or relayfs are mounted exactly where we expect and other mounts are ignored. --- stp_check.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stp_check.in') diff --git a/stp_check.in b/stp_check.in index 3f7fe0a8..c5adf4e5 100755 --- a/stp_check.in +++ b/stp_check.in @@ -8,12 +8,12 @@ RELAYFS_FS=`grep relayfs_create_dir /proc/kallsyms` RELAY=`grep relay_open /proc/kallsyms` if [ -n "$RELAY" -a -z "$RELAYFS_FS" ] then - MOUNT=`mount | grep debugfs |awk '{print $1}'` + MOUNT=`mount | grep "/sys/kernel/debug" |awk '{print $1}'` if [ "$MOUNT" != "debugfs" ] then mount -t debugfs debugfs /sys/kernel/debug fi - MOUNT=`mount | grep debugfs |awk '{print $1}'` + MOUNT=`mount | grep "/sys/kernel/debug" |awk '{print $1}'` if [ "$MOUNT" != "debugfs" ] then exit 1 @@ -26,7 +26,7 @@ then mkdir /mnt/relay fi -MOUNT=`mount | grep relayfs |awk '{print $1}'` +MOUNT=`mount | grep "/mnt/relay" |awk '{print $1}'` if [ "$MOUNT" != "relayfs" ] then mount -t relayfs relayfs /mnt/relay -- cgit