Menu

#9 FIX for "--linetype missing" problem..

open
Aurelio
None
5
2006-10-08
2006-10-07
====
No

Hi,
I noticed that if the variable LINE_TYPE is not set in
/etc/amedyn,this script exits without a proper error
message (in fact erroneosly calls amload this way:

amload -fcs --linetype

when it should be

amload -fcs

With this patch I simply check that LINE_TYPE is
present before adding --linetype parameter.
Please test it ;-)

Vincenzo

Discussion

  • Aurelio

    Aurelio - 2006-10-07

    Logged In: YES
    user_id=742802

    Are this line ok?
    LOADPRMS= $"-fcs"

    The $ before " in this line and with the command 'echo' is
    unknow for me, and i don't find anything about it. I don't
    write this scripts...

     
  • Aurelio

    Aurelio - 2006-10-07
    • assigned_to: nobody --> sktt
     
  • ====

    ==== - 2006-10-08

    Logged In: YES
    user_id=433085

    Ok, ok, I didn't test before (because I didn't have a
    linuxbox at hand) but this should be correct.
    The correct line should be
    LOADPRMS=$"-fcs"
    not
    LOADPRMS= $"-fcs"

    The whitespace was the error. but I canceled also the $, it
    seems the same..btw.
    Test it now, please... Thx ;)

     
  • ====

    ==== - 2006-10-08

    amload (Verified version)

     
  • ====

    ==== - 2006-10-08
    • summary: FIX for "--linetype missing" problem --> FIX for "--linetype missing" problem..
     
  • ====

    ==== - 2006-10-08

    amstart script (handles better RESYNC variable)

     
  • ====

    ==== - 2006-10-08

    Logged In: YES
    user_id=433085

    ...and here's my modified version of amstart.h
    I modified it because I had not set the variable RESYNC in
    /etc/amedyn , when I first installed the package.
    This led to an error in the final

    if [ "$RESYNC" -eq 1 ]; then

    that I corrected whith

    if [[ "$RESYNC" -eq 1 ]]; then

    Try to comment the line about RESYNC in /etc/amedyn and tell
    me if it works...
    Vincenzo

     
  • Aurelio

    Aurelio - 2006-10-08

    Logged In: YES
    user_id=742802

    I'm update the CVS. I hope the changes fix the problem.

     

Log in to post a comment.