Instalar sh. error

Cerrado
lem13631363
Message postés
1
Date d'inscription
martes, 4 de junio de 2013
Estatus
Miembro
Última intervención
martes, 4 de junio de 2013
- 4 jun 2013 a las 22:37
Hola,
queria pedir vuestra ayuda en el siguiente caso tengo que instalar una impresona a mi maquina con linux mint 13 sigo los pasos que me indica....
.... lo que me deberia salir ....

Step1 : Run the following command sh setup_v1.0.0.sh If everything goes fine you will get the following message

Bixolon CO Ltd
SRP-270 V1.0.0 Installer
---------------------------------------

Models included: SRP-270

Copying rastertoSRP270_v1.0.0 filter...

Creating Symbolic Link....

ln: creating symbolic link /usr/lib/cups/filter/rastertoSRP270_v1.0.0: File exists

Copying model ppd files...

Restarting CUPS

Stopping cups: [ OK ]

Starting cups: [ OK ]

Install Complete
---
lo que me sale es este....
ventas1m@PC-VENTASM ~/Escritorio $ sh setup_v1.0.0.sh

---------------------------------------------------------
BIXOLON CO LTD
BIXOLON SRP-270 CUPS DRIVER V1.0.0 Installer
---------------------------------------------------------

Models included:
: not found0.sh: 9: setup_v1.0.0.sh:
SRP-270

: not found0.sh: 12: setup_v1.0.0.sh:
: not found0.sh: 14: setup_v1.0.0.sh:
setup_v1.0.0.sh: 72: setup_v1.0.0.sh: Syntax error: "fi" unexpected (expecting "then")
... ya lo ejecute como administrador tambien abajo dejare el codigo completo espero vuestra ayuda amigos ...


codigo completo "setup_v1.0.0.sh"

#!/bin/sh
echo ""
echo "---------------------------------------------------------"
echo " BIXOLON CO LTD"
echo "BIXOLON SRP-270 CUPS DRIVER V1.0.0 Installer"
echo "---------------------------------------------------------"
echo ""
echo "Models included:"

echo " SRP-270"
echo ""

ROOT_UID=0

if [ "$UID" -ne "$ROOT_UID" ]
then
echo "This script requires root user access..."
echo "Re-run as root user..."
exit 1
fi

echo "Copying rastertoSRP270_v1.0.0 filter..."

sudo chmod +x rastertoSRP270_v1.0.0
sudo cp ./rastertoSRP270_v1.0.0 /usr/bin/
sudo chmod 0755 /usr/bin/rastertoSRP270_v1.0.0
echo ""

echo "Creating Symbolic Link...."
sudo ln -s --target-directory=/usr/lib/cups/filter/ /usr/bin/rastertoSRP270_v1.0.0
sudo chmod 0755 /usr/lib/cups/filter/rastertoSRP270_v1.0.0
echo ""

echo "Copying model ppd files... "
sudo chmod +x SRP270_v1.0.0.ppd

if [ -x /etc/init.d/cupsys ]
then
if [ -r /etc/debian_version ]
then
if [ -r /etc/lsb-release ]
then
if [ -r /usr/share/cups/model ]
then
sudo cp ./SRP270_v1.0.0.ppd /usr/share/cups/model/
sudo chmod 0755 /usr/share/cups/model/SRP270_v1.0.0.ppd
else
sudo cp ./SRP270_v1.0.0.ppd /usr/share/ppd/
sudo chmod 0755 /usr/share/ppd/SRP270_v1.0.0.ppd
fi
else
sudo cp ./SRP270_v1.0.0.ppd /usr/share/ppd/
sudo chmod 0755 /usr/share/ppd/SRP270_v1.0.0.ppd

fi
else
sudo cp ./SRP270_v1.0.0.ppd /usr/share/cups/model/
sudo chmod 0755 /usr/share/cups/model/SRP270_v1.0.0.ppd

fi
else
if [ -r /etc/debian_version ]
then
sudo cp ./SRP270_v1.0.0.ppd /usr/share/ppd/
sudo chmod 0755 /usr/share/ppd/SRP270_v1.0.0.ppd

else
sudo cp ./SRP270_v1.0.0.ppd /usr/share/cups/model/
sudo chmod 0755 /usr/share/cups/model/SRP270_v1.0.0.ppd

fi
fi

sudo service cups stop
sudo service cups start

echo ""

echo "Restarting CUPS"
if [ -x /etc/software/init.d/cups ]
then
sudo /etc/software/init.d/cups stop
sudo /etc/software/init.d/cups start
elif [ -x /etc/rc.d/init.d/cups ]
then
sudo /etc/rc.d/init.d/cups stop
sudo /etc/rc.d/init.d/cups start
elif [ -x /etc/rc.d/rc.cups ]
then
sudo /etc/rc.d/rc.cups stop
sudo /etc/rc.d/rc.cups start
elif [ -x /etc/init.d/cups ]
then
sudo /etc/init.d/cups stop
sudo /etc/init.d/cups start
elif [ -x /sbin/init.d/cups ]
then
sudo /sbin/init.d/cups stop
sudo /sbin/init.d/cups start
elif [ -x /etc/software/init.d/cupsys ]
then
sudo /etc/software/init.d/cupsys stop
sudo /etc/software/init.d/cupsys start
elif [ -x /etc/rc.d/init.d/cupsys ]
then
sudo /etc/rc.d/init.d/cupsys stop
sudo /etc/rc.d/init.d/cupsys start
elif [ -x /etc/init.d/cupsys ]
then
sudo /etc/init.d/cupsys stop
sudo /etc/init.d/cupsys start
elif [ -x /sbin/init.d/cupsys ]
then
sudo /sbin/init.d/cupsys stop
sudo /sbin/init.d/cupsys start
else
echo "Could not restart CUPS"
fi

sudo service cups stop
sudo service cups start

echo ""

echo "Install Complete"
echo "Add printer queue using OS tool, http://localhost:631, or http://127.0.0.1:631"
echo ""