From: Philippe E. <ph...@wa...> - 2003-02-24 22:00:43
|
William Cohen wrote: > I was looking at the code for do_deinit in util/opcontrol. It didn't > look right. The grep only be checking the /etc/mtab. On the ia64 machine > I am trying things out on it would complain about /dev/oprofile being a > directory. > > 2003-02-23 Will Cohen <wc...@re...> > > * utils/opcontrol (do_deinit): Correct search for /dev/oprofile. > > Okay to add? ok Phil > Index: utils/opcontrol > =================================================================== > RCS file: /cvsroot/oprofile/oprofile/utils/opcontrol,v > retrieving revision 1.27 > diff -u -r1.27 opcontrol > --- utils/opcontrol 21 Feb 2003 02:06:10 -0000 1.27 > +++ utils/opcontrol 24 Feb 2003 19:38:40 -0000 > @@ -1010,7 +1010,7 @@ > > do_deinit() { > #unmount /dev/oprofile if it is mounted > - if grep /dev/oprofile /etc/mtab /dev/oprofile; then > + if grep /dev/oprofile /etc/mtab; then > umount /dev/oprofile > fi > #unload the oprofile module if it is around |