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

Re: Whats wrong with this script ?



Le 2002.08.14 05:19, Dr. Sachin Kale a écrit :
I am trying to get a module compiled against kernel 2.2.12-20, work on
2.2.19; I found this script on the net, when I run this as
 ./fixscript esscom.o esscom.fix.o I get the error -

./fixscript1: $MI: ambiguous redirect
./fixscript1: line 5: syntax error near unexpected token `do '
./fixscript1: line 5: ` do '

Here is the original script -

MI=/tmp/modinfo [ -z "$DEPMOD" ] && DEPMOD=depmod #new kernel version
modinfo section
echo -ne "kernel_version="`uname -r`"\0" > $MI #build the objcopy
command
CMD="objcopy"

What the value of $MI ?
Is "MI=/tmp/modinfo" and "[ -z "$DEPMOD" ] && DEPMOD=depmod..." on the same line ?
If yes it can be the problem.



Reply to: