[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linrad] Re: Build trouble



> After quite some time I arrived at this:
> kernver=`(uname -sr) | cut -d. -f-2`
> if test "$kernver" = "Linux 2.2"; then
> .......
> else
> if test "$kernver" = "Linux 2.4"; then
> .....
> else
> ......
> fi
> fi

case "$kernvar" in
"Linux 2.2")
 ...
 ... ;;
"Linux 2.4")
 ...
 ... ;;
*)
 echo "Unknown kernel $kernver";;
esac

See http://www.tldp.org/LDP/abs/html/testbranch.html for the full 
gory details.

73 de g3rse



#############################################################
This message is sent to you because you are subscribed to
  the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx>
To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
Send administrative queries to  <linrad-request@xxxxxxxxxxxxxxxxxxxxx>

LINRADDARNIL