/usr/sbin/ndiswrapper is in ndiswrapper-common 1.59-2.
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 | #!/bin/sh -e
# Find the most suitable version of ndiswrapper-utils to use:
# - first check what API is required by currently installed kernel module
# - fallback to detection of latest utility version
utils_version() {
UTILS_VERSION=$(/sbin/modinfo -F parm ndiswrapper 2>/dev/null | \
sed -n 's/^utils_version:.*([^:]\+: \([0-9\.]\+\))$/\1/p')
if [ "${UTILS_VERSION}" ]; then
echo ${1}-${UTILS_VERSION}
else
for file in ${1}-[\.0-9][\.0-9]*; do
[ -x "${file}" ] && echo ${file}
done | sort -n -t - -k 2 | tail -1
fi
}
NDISWRAPPER=$(utils_version /usr/sbin/ndiswrapper)
if [ -x "${NDISWRAPPER}" ]; then
exec ${NDISWRAPPER} "${@}"
fi
if [ "${NDISWRAPPER}" ]; then
echo "Error: ndiswrapper-utils-${NDISWRAPPER##*-} not installed!" 1>&2
else
echo "Error: unable to find a version of ndiswrapper!" 1>&2
fi
exit 1
|