1
0
mirror of synced 2026-02-04 07:12:45 +00:00

Call MAKEDEV only if it is installed.

(Which is the case as long as it was a 'required' package.)
This commit is contained in:
Axel Beckert
2010-05-17 00:10:02 +02:00
parent 57cc021ba7
commit dd5edf3ccb

View File

@@ -29,12 +29,16 @@ logMessage Script $0 starting
#
# Test where MAKEDEV is located, assuming /sbin/ as default
#
MAKEDEV="${prefix}/sbin/MAKEDEV"
if [ ! -x "${MAKEDEV}" -a -x "${prefix}/dev/MAKEDEV" ]; then
MAKEDEV="${prefix}/dev/MAKEDEV"
fi
MAKEDEV=''
MAKEDEV_PATHS="/sbin/MAKEDEV /dev/MAKEDEV"
for MAKEDEV_PATH in ${MAKEDEV_PATHS}; do
if [ -x "${prefix}${MAKEDEV_PATH}" ]; then
MAKEDEV="${prefix}${MAKEDEV_PATH}"
break
fi
done
if [ -n "${MAKEDEV}" ]; then
#
# Early termination if we have a couple of common devices present
@@ -62,6 +66,7 @@ cd ${prefix}/dev
${MAKEDEV} generic
${MAKEDEV} std
fi # -n ${MAKEDEV}
#
# Log our finish