On Thu, 8 Apr 1999, Arno Verhoeven wrote:

> I have been playing with the new 2.2 kernels and got tired of changing
> the configuration files that call the z8530 utils. So a did the
> following to make them work with both the 2.0.x and 2.2.x kernels.
> 
> First I renamed sccinit, sccparam and sccstat to sccinit-2.4c,
> sccparam-2.4c and sccinit-2.4c.
> Then I installed the z8530-utils-3.0 and renamed the new files to
> sccinit-3.0, sccparam-3.0 and sccinit-3.0.
> 
> Next I made a few small scripts named sccinit, sccsparam and sccstat
> that look as follows.

Nice idea! I would however suggest some refinements to the script.
Remember that this is just an additional idea, something for people to
chew on. The original scripts are quite ok as is.

Anyway, make an executable script named "sccutils" that has something like
this in it (untested!):

-------------- clip ---------------------
#!/bin/sh
CMDNAME=`basename $0`
case `uname -r` in
        2.0.*)  CMDVERSION=2.4c ;;
        2.2.*)  CMDVERSION=3.0  ;;
        *)      echo "sccutils: unsupported kernel version" ; exit 1 ;;
esac
${CMDNAME}-${CMDVERSION} $*
-------------- clip ---------------------

And then make sccinit, sccparam and sccstat symbolic links to the sccutils
script:

ln -s sccutils sccinit
ln -s sccutils sccparam
ln -s sccutils sccstat

-- 
--... Tomi Manninen / [EMAIL PROTECTED] / OH2BNS @ OH2RBI.FIN.EU ...--

Reply via email to