Fix ltt-armall/disarmall /debugfs auto-find
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 7 Apr 2010 19:07:19 +0000 (15:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 7 Apr 2010 19:07:19 +0000 (15:07 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttctl/ltt-armall.sh
lttctl/ltt-disarmall.sh

index d73cdbaaf349f94bd5996ad681f5a2bae8f44a50..1b1c3f9598f8470276c9e08e60ff2d42cf906e76 100755 (executable)
@@ -1,4 +1,5 @@
 # Copyright (C) 2009 Benjamin Poirier
+# Copyright (C) 2010 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -14,7 +15,7 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
-DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -n 1 | awk '{print $2}')
+DEBUGFSROOT=$(awk '{if ($3 == "debugfs") print $2}' /proc/mounts | head -n 1)
 MARKERSROOT=${DEBUGFSROOT}/ltt/markers
 
 usage () {
index 5fdcf1ec2b6f3fdf0acbaf80a6f15e5b52993ca5..56dc3a0b1e48644caae856da3849b4a9061ed7c1 100755 (executable)
@@ -1,4 +1,5 @@
 # Copyright (C) 2009 Benjamin Poirier
+# Copyright (C) 2010 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -14,7 +15,7 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
-DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -n 1 | awk '{print $2}')
+DEBUGFSROOT=$(awk '{if ($3 == "debugfs") print $2}' /proc/mounts | head -n 1)
 MARKERSROOT=${DEBUGFSROOT}/ltt/markers
 
 usage () {
This page took 0.023572 seconds and 4 git commands to generate.