37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
$NetBSD: patch-aa,v 1.1.1.1 2007/07/17 19:03:16 drochner Exp $
|
|
|
|
--- src/orca/orca.in.orig 2007-04-09 21:59:57.000000000 +0200
|
|
+++ src/orca/orca.in
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/bash
|
|
+#!/bin/sh
|
|
#
|
|
# Orca
|
|
#
|
|
@@ -30,7 +30,7 @@
|
|
|
|
# Set the user's $PATH for this script.
|
|
#
|
|
-export PATH="/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/X11R6/bin"
|
|
+#export PATH="/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/X11R6/bin"
|
|
|
|
# If you set RUNONCE to "true", then this will just run Orca once and quit.
|
|
#
|
|
@@ -238,7 +238,7 @@ if [ "x$RUNONCE" = "xfalse" -a "x$ARGS"
|
|
then
|
|
main
|
|
else
|
|
- if [ `grep -c "\-q" <<< $ARGS` -gt 0 ]
|
|
+ if [ `echo $ARGS | grep -c "\-q"` -gt 0 ]
|
|
then
|
|
cleanup
|
|
else
|
|
@@ -250,7 +250,7 @@ else
|
|
# erroneously types an illegal command line argument, the
|
|
# help text is emitted and the other orca is not killed.
|
|
#
|
|
- if [ `egrep -c "\-s|\-g|\-t|\-n|\-u|\-e|\-d" <<< $ARGS` -eq 0 ]
|
|
+ if [ `echo $ARGS | egrep -c "\-s|\-g|\-t|\-n|\-u|\-e|\-d"` -eq 0 ]
|
|
then
|
|
runOrca "NO_CLEANUP"
|
|
else
|