[issue712] scanmodem in grml-network

Joerg Woelke bts at bts.grml.org
Fri Jul 24 22:46:28 CEST 2009


New submission from Joerg Woelke <joewoe at fsmail.de>:

Hi!

% scanmodem

[ snip ]

find: warning: you have specified the -mindepth option after a
non-option argument -name, but options are not positional (-mindepth
affects tests specified before it as well as those specified after
it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a
non-option argument -name, but options are not positional (-maxdepth
affects tests specified before it as well as those specified after
it).  Please specify options before other arguments.

[ snip ]

%

Just flip the args to find. 
Patch:

###Cut 
--- scanmodem   2009-06-16 00:42:09.000000000 +0200
+++ scanmodem.neu       2009-07-24 22:00:47.000000000 +0200
@@ -936,7 +936,7 @@
 slamr.ko test
 if [ -x /bin/dmesg ] ; then
   DMESG=/bin/dmesg
   -  SLAMR=`find /lib/modules/ -name slamr.* -mindepth 3 -maxdepth 5 | grep $SYS`
   +  SLAMR=`find /lib/modules/ -mindepth 3 -maxdepth 5 -name slamr.* | grep $SYS`
   fi
 
   if test -n "$DMESG" -a -n "$SLAMR" -a -n "$smart" ; then
###Cut

Thanks and Greetings, J"o!

-- 
question = ( to ) ? be : ! be;
		-- Wm. Shakespeare

----------
messages: 2358
nosy: joewoe
status: unread
title: scanmodem in grml-network

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue712>
_____________________________________


More information about the Bugs-changes mailing list