Napisano: 19 Maj 2010 0:33
Evo opet mene sa vecitim problemima
Dakle,imam z2320 lexmark stampac ali za njega postoji samo 32bit installer.
Kada skinem installer,on je u formi "ime.deb.sh". Na internetu sam nasao da ce on raditi ako se na njemu iskoristi ova skripta:
Extracter.sh
#!/bin/bash
# March 18, 2009 (c) crafted by spider
if [[ $# -ne 1 ]]; then
echo "Usage:"
echo "./extracter.sh installer.sh"
exit 0
fi
if [ ! -f ${1} ]; then
echo "${1} missing"
exit 0
fi
if [ -d tmp ]; then
echo "collision with an existing tmp folder"
exit 0
fi
./${1} --noexec --keep
cd tmp
bin/linux/x86/libc.so.6/lzma-decode instarchive_all ./arch.tar
mkdir vault && cd vault
tar xvf ../arch.tar
cd ../../
cp tmp/vault/lexmark-inkjet* .
rm -rf tmp
i potom se pokrene sa "--force-all -i"
Problem je sto meni ta skripta ne radi,tj kada ukucam u terminalu "./extracter.sh lexmark-blablabla"
dobijam sledece:
./extracter.sh: 9: [[: not found
Creating directory tmp
Verifying archive integrity... All good.
Uncompressing nixstaller...............................................................
./extracter.sh: 23: bin/linux/x86/libc.so.6/lzma-decode: not found
tar: ../arch.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
cp: cannot stat `tmp/vault/lexmark-inkjet*': No such file or directory
igor@igor-desktop:~/Desktop$
Dopuna: 19 Maj 2010 0:34
da,nisam rekao,mada ce iskusniji verovatno pretpostaviti: ova "extracter" skripta bi trebala da iz .deb.sh fajla izdvoji samo .deb fajl
|