+2007-04-24 Martin Hunt <hunt@redhat.com>
+
+ * stp_check.in: More tweaking of mount statement.
+
2007-04-23 Frank Ch. Eigler <fche@redhat.com>
* tapsets.cxx (die_entrypc): Expand search algorithm to
RELAY=`grep relay_open /proc/kallsyms`
if [ -n "$RELAY" -a -z "$RELAYFS_FS" ]
then
- MOUNT=`mount | grep "/sys/kernel/debug" |awk '{print $1}'`
- if [ "$MOUNT" != "debugfs" ]
+ MOUNT=`mount -t debugfs | grep "/sys/kernel/debug"`
+ if [ "$MOUNT" == "" ]
then
mount -t debugfs debugfs /sys/kernel/debug
fi
- MOUNT=`mount | grep "/sys/kernel/debug" |awk '{print $1}'`
- if [ "$MOUNT" != "debugfs" ]
+ MOUNT=`mount -t debugfs | grep "/sys/kernel/debug"`
+ if [ "$MOUNT" == "" ]
then
exit 1
fi
mkdir /mnt/relay
fi
-MOUNT=`mount | grep "/mnt/relay" |awk '{print $1}'`
-if [ "$MOUNT" != "relayfs" ]
+MOUNT=`mount -t relayfs | grep "/mnt/relay"`
+if [ "$MOUNT" == "" ]
then
mount -t relayfs relayfs /mnt/relay
fi