All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [patch] fix xeno-test for busybox
@ 2006-09-12 16:56 Jan Kiszka
  2006-09-12 17:00 ` Jan Kiszka
  2006-09-12 19:05 ` Niklaus Giger
  0 siblings, 2 replies; 11+ messages in thread
From: Jan Kiszka @ 2006-09-12 16:56 UTC (permalink / raw)
  To: xenomai-core


[-- Attachment #1.1: Type: text/plain, Size: 296 bytes --]

Hi,

I just tried to fire up xeno-test on a busybox system - without success.
Reason: missing getopts. But busybox initial test checks for something
else, namely getopt. The attached patch should fix this it, also taking
into account that getopts in a shell built-in, not an applet.

Jan

[-- Attachment #1.2: xeno-test-getopts.patch --]
[-- Type: text/plain, Size: 892 bytes --]

Index: scripts/xeno-test.in
===================================================================
--- scripts/xeno-test.in	(revision 1591)
+++ scripts/xeno-test.in	(working copy)
@@ -57,8 +57,8 @@ pidFile=/var/lock/`basename $0.$$`.pids
 
 checkUtilities() {
   # Check for needed helper utilities
-  local neededApplets="awk basename cut date dd dirname egrep grep getopt
-		       head kill md5sum mount sleep test top uname zcat"
+  local neededApplets="awk basename cut date dd dirname egrep grep head
+		       kill md5sum mount sleep test top uname zcat"
   local foundAll=1
   for  _j in $neededApplets
   do
@@ -67,6 +67,10 @@ checkUtilities() {
       foundAll=0
     fi
   done
+  if ! type getopts 2>&1 >/dev/null; then
+    echo "Please build busybox's ash with support for getopts"
+    foundAll=0
+  fi
   if test $foundAll -eq 0 ; then exit 3 ; fi
 }
 

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-09-13  6:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-12 16:56 [Xenomai-core] [patch] fix xeno-test for busybox Jan Kiszka
2006-09-12 17:00 ` Jan Kiszka
2006-09-13  5:39   ` Gilles Chanteperdrix
2006-09-13  6:35     ` Romain Lenglet
2006-09-13  6:55       ` Romain Lenglet
2006-09-13  6:59         ` Romain Lenglet
2006-09-13  6:38     ` Gilles Chanteperdrix
2006-09-12 19:05 ` Niklaus Giger
2006-09-12 19:11   ` Jan Kiszka
2006-09-12 19:47     ` Niklaus Giger
2006-09-12 20:58       ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.