Re: Whats wrong with this script ?
On Wed, Aug 14, 2002 at 08:49:49AM +0530, Dr. Sachin Kale wrote:
> 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
Split that line after 'modinfo', so:
MI=/tmp/modinfo
[ -z "$DEPMOD" ] && DEPMOD=depmod #new kernel version
Vineet's dealt with the other error.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: