mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Warhog", due to misparsing the udevinfo version string. The problem is caused by an old version of sed that does not appreciate the regexp. This patch fixes it, and also works on debian unstable and SLES9SP2. Please apply... Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org> Signed-Off-By: Orna Agmon <ladypine@ladypine.org>
17 lines
360 B
Bash
17 lines
360 B
Bash
#!/bin/bash
|
|
# CHECK-INSTALL
|
|
|
|
function error {
|
|
echo
|
|
echo ' *** Check for the hotplug scripts (hotplug) FAILED'
|
|
exit 1
|
|
}
|
|
[ -x "$(which udevinfo)" ] && \
|
|
UDEV_VERSION=$(udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/')
|
|
|
|
if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
|
|
exit 0
|
|
fi
|
|
|
|
which hotplug 1>/dev/null 2>&1 || error
|