mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
check_hotplug fails on one of my machines running ubunto 4.10 "Warty
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>
This commit is contained in:
1 parent
a8845ad36e
commit
f3ac9a462d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ cp -fdRL $src/etc/init.d/* $dst/etc/init.d/
|
||||
echo "All done."
|
||||
|
||||
[ -x "$(which udevinfo)" ] && \
|
||||
UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/')
|
||||
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
|
||||
cp -f $src/etc/udev/rules.d/*.rules $dst/etc/udev/rules.d/
|
||||
|
||||
@@ -7,7 +7,7 @@ function error {
|
||||
exit 1
|
||||
}
|
||||
[ -x "$(which udevinfo)" ] && \
|
||||
UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/')
|
||||
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
|
||||
|
||||