Well, I tried to figure out what the intention of these lines really was.  But they 
didn't make any sense to me and, after scratching my head for far too long, I just 
commented out the if...then statement, and just wrote in the arguements that I wanted 
`halt` to see.

After reading your comments, I think maybe something like this was intended:

if [ -x /sbin/poweroff -o -x /sbin/halt ]; then
  HALTARGS="$HALTARGS -p"
fi

I'll try this out the next time I'm at my laptop (the only machine I shutdown 
regularly).

Thanks for your thoughts!

__
Larry Grover, PhD
Assoc Prof of Physiology
Marshall Univ Sch of Med



On Sun, 22 Oct 2000 20:22:12 +0200, Gustav Schaffter <[EMAIL PROTECTED]> wrote:
>
> Larry,
>
> I believe that line should probably be corrected to read:
>
> #if [ -f /sbin/poweroff -o ! -f /sbin/halt ]; then
>
> to make it work as intended. (Haven't tried it myself, though. I'm still
> on RH6.2+)
>
> Regards
> Gustav
>
> Larry Grover wrote:
>> 
>> I made these changes to the last lines in /etc/rc.d/init.d/halt:
>> 
>> #I commented out the if clause, and added -p to HALTARGS
>> #to make the system power-off automatically
>> HALTARGS="-i -d -p"
>> #if [ -f /poweroff -o ! -f /halt ]; then
>> # HALTARGS="$HALTARGS -p"
>> #fi
>> 
>> eval $command $HALTARGS
>> 
>> --
>> Larry Grover, PhD
>> Assoc Prof of Physiology
>> Marshall Univ Sch Med
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to