Hi,
This time I don't have any questions but some information that I want to
share :^)
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.
#! /bin/sh
KVERSION=`uname -r | cut -f 1,2 -d .`
if [ ${KVERSION} = "2.0" ]
then
SCCUTILS=2.4c
else
SCCUTILS=3.0
fi
sccinit-${SCCUTILS}
# end of /sbin/sccinit
#! /bin/sh
KVERSION=`uname -r | cut -f 1,2 -d .`
if [ ${KVERSION} = "2.0" ]
then
SCCUTILS=2.4c
else
SCCUTILS=3.0
fi
sccparam-${SCCUTILS} $1 $2 $3 $4 $5 $6 $7 $8 $9
# end of /sbin/sccparam
#! /bin/sh
KVERSION=`uname -r | cut -f 1,2 -d .`
if [ ${KVERSION} = "2.0" ]
then
SCCUTILS=2.4c
else
SCCUTILS=3.0
fi
sccstat-${SCCUTILS} $1 $2 $3 $4 $5 $6 $7 $8 $9
# end of /sbin/sccstat
Make these script files executable and you're good to go.
You can use the sccinit, sccparam and sccstat commands as before without
having to worry about which kernel version you are running.
73, Arno pe1icq