/usr/lib/cyberjack/getdist.sh is in libifd-cyberjack6v5 3.99.5final.sp05-2ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | #!/bin/sh
RPM_COMMAND="`which rpm`"
DIST_NAME=""
DIST_VER=""
# check for DEB
if test -z "${DIST_NAME}"; then
if test -f "/etc/debian_version"; then
debtype=["` gcc --version | head -1`"]
case $debtype in
*\(Debian\ *)
DIST_NAME="Debian"
DIST_VER="`cat /etc/debian_version`"
;;
*\(Ubuntu\ * | *\(KUbuntu\ *)
DIST_NAME="Ubuntu"
DIST_VER="`cat /etc/debian_version`"
;;
*)
DIST_NAME="Debian or derivate"
DIST_VER="`cat /etc/debian_version`"
;;
esac
fi
fi
# check for RPM
if test -z "${DIST_NAME}"; then
if test -n "${RPM_COMMAND}"; then
if test -x "${RPM_COMMAND}"; then
if test -e "/etc/mandriva-release"; then
DIST_NAME="Mandriva"
#DIST_VER="`rpm -q --queryformat='%{VERSION}' mandriva-release 2>/dev/null`"
read v1 v2 v3 v4 v5 </etc/mandriva-release
DIST_VER=$v4
elif test -e "/etc/SuSE-release"; then
DIST_NAME="SuSE"
read v1 v2 v3 v4 </etc/SuSE-release
case "$v2" in
*.*)
DIST_VER=$v2
;;
*)
DIST_VER=$v3
;;
esac
elif test -e "/etc/fedora-release"; then
DIST_NAME="Fedora Core"
DIST_VER="`rpm -q --queryformat='%{VERSION}' fedora-release 2>/dev/null`"
fi
fi
fi
fi
if test -z "${DIST_NAME}"; then
DIST_NAME="(unbekannt)"
fi
if test -z "${DIST_VER}"; then
DIST_VER="(unbekannt)"
fi
echo "${DIST_NAME}" >distname
echo "${DIST_VER}" >distver
|