Re: [ANNOUNCE] runvdr extreme

Message ID 452B8E69.2070106@gmx.de
State New
Headers

Commit Message

Udo Richter Oct. 10, 2006, 12:13 p.m. UTC
  Suur Karu wrote:
> Nice script, but one question.
> After starting 'runvdr&' file with name '-' is created with content:
> /bin/setterm
> 
> For what is it?

For checking if people would notice. ;)

Note to myself: Don't do these last-minute changes....

Attached patch should fix this.

Cheers,

Udo
  

Patch

Index: runvdr
===================================================================
--- runvdr	(revision 776)
+++ runvdr	(working copy)
@@ -68,14 +68,14 @@ 
 #  -w #  --watchdog # WATCHDOG         activate the watchdog timer with a timeout of SEC
 
 
-which $PGREP     >- || { echo missing $PGREP... >2 ;   exit 1 ; }
-which $PS        >- || { echo missing $PS... >2 ;      exit 1 ; }
-which $GETOPT    >- || { echo missing $GETOPT... >2 ;  exit 1 ; }
-which $KILL      >- || { echo missing $KILL... >2 ;    exit 1 ; }
-which $SLEEP     >- || { echo missing $SLEEP... >2 ;   exit 1 ; }
-which $CHVT      >- || { echo missing $CHVT... >2 ;    exit 1 ; }
-which $DATE      >- || { echo missing $DATE... >2 ;    exit 1 ; }
-which $SETTERM   >- || { echo missing $SETTERM... >2 ; exit 1 ; }
+which $PGREP     >&- || { echo missing $PGREP... >2 ;   exit 1 ; }
+which $PS        >&- || { echo missing $PS... >2 ;      exit 1 ; }
+which $GETOPT    >&- || { echo missing $GETOPT... >2 ;  exit 1 ; }
+which $KILL      >&- || { echo missing $KILL... >2 ;    exit 1 ; }
+which $SLEEP     >&- || { echo missing $SLEEP... >2 ;   exit 1 ; }
+which $CHVT      >&- || { echo missing $CHVT... >2 ;    exit 1 ; }
+which $DATE      >&- || { echo missing $DATE... >2 ;    exit 1 ; }
+which $SETTERM   >&- || { echo missing $SETTERM... >2 ; exit 1 ; }