chmod +x somefile.run
./somefile.run
./software-devolo-cockpit-linux-v4-3-3.run
Error: this system does not have apt-get, cannot install.
#!/bin/sh
set -e
if [ ! -x "$(which dpkg 2>/dev/null)" ]; then
echo "Error: this system does not have dpkg, cannot install."
exit 1
fi
if [ ! -x "$(which apt-get 2>/dev/null)" ]; then
echo "Error: this system does not have apt-get, cannot install."
exit 1
fi
arch=$(dpkg --print-architecture)
if [ "$arch" != "i386" ] && [ "$arch" != "amd64" ]; then
echo "Error: architecture $arch not supported, cannot install."
exit 1
fi
result=0
skip=$(grep -a -m1 -n "HERE_BE_DRAG[O]NS" $0 | cut -d: -f1)
tmpdir=$(mktemp -d -p .)
packages="$tmpdir/adobeair_*_$arch.deb $tmpdir/devolo-dlan-cockpit_*_$arch.deb"
if [ "$(dpkg --print-foreign-architectures|grep -o "\<i386\>")" = "i386" ] &&
! ( apt-cache dumpavail | grep -q "^\(Package: ia32-libs-gtk$\|Provides:.* ia32-libs-gtk\(, .*\|$\)\)" ); then
packages="$packages $tmpdir/devolo-ia32-libs_*_i386.deb"
fi
if ! tail $0 -n +$((skip+1)) | tar -x -C $tmpdir; then
echo "Error: failed to extract files, installer may be corrupted. Please download again."
result=2
elif ! ( cd $tmpdir; md5sum -c md5sums.txt >/dev/null ); then
echo "Error: failed to verify files, installer may be corrupted. Please download again."
result=2
elif ! ( dpkg -GEi $packages || apt-get install -fy ); then
echo "Error: installation failed. Remember you must be root or using sudo to install software."
result=3
fi
rm -rf $tmpdir
exit $result
HERE_BE_DRAGONS
md5sums.txted08bcb27ec71bf563f7a82a5cafc37b adobeair_2.6.0.19170-devolo1_i386.deb
48fd4eebc3c7ad48f58d489a841bcecc devolo-dlan-cockpit_4.3.3-0_amd64.deb
fd778f2f72bb3a59a6710e5901660368 devolo-dlan-cockpit_4.3.3-0_i386.deb
7fe1e9174fcf5645929d858ca0dd0b00 devolo-ia32-libs_1_i386.deb
Users browsing this forum: No registered users and 1 guest