I dont know which section to post this in, so I posted it in programming seeing as its scripting related.
Im trying to install the atmel driver for my BT Voyager 1010 USB Adapter. I have had a lot of problems with this, but have finally managed to get a cvs version that will compile. The only problem is, I get an error in this script. I have never done any of this sh stuff, so I cant fix it.
Does anyone know why I get the syntax message? (See output after running the script below)
#----THIS IS THE ACTUAL SCRIPT----
atmel='grep -c 'ATMEL' $WIRELESS'
# if [ "$atmel" -lt "1" ]; then patch $WIRELESS $PATCHDIR/startup.patch; fi
if [ -f scripts/.vnetrc ]; then install -m 666 scripts/.vnetrc /root/; fi
if [ -f scripts/atmel.conf ]; then install -m 666 scripts/atmel.conf /etc/pcmcia/; fi
for i in objs/usb*.o ; do #<---------- this line errors
cuted_i=$(basename $i|cut -d. -f1)
if [ -f $i ];then if ( grep $cuted_i /etc/modules.conf >/dev/null ); then
echo "NOP" >/dev/null; else
echo "#post-install $cuted_i /bin/fastvnet.sh">> /etc/modules.conf;fi
#----END OF SCRIPT ----
The output of this is: (I have run something before so I think thats why the directories already exist)
[root@localhost atmelwlandriver]# make install
pcmcia directory already exists
usb directory already exists
pci directory already exists
bin directory already exists
x11r6 bin directory already exists
/home/<User>/Desktop/atmelwlandriver/scripts/append.sh: line 8: syntax error near 'nexpected token `do
/home/<User>/Desktop/atmelwlandriver/scripts/append.sh: line 8: `for i in objs/usb '.o ; do
make: *** [install] Error 2