diff options
author | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2005-11-25 15:26:19 +0000 |
---|---|---|
committer | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2005-11-25 15:26:19 +0000 |
commit | f3ac9a462dc9e1d19efd1b2d7324fed69d7c36f4 (patch) | |
tree | 797bfbe9b12f897a79b7a5130c0c26fc33472f7e /install.sh | |
parent | a8845ad36e27e585f1d4067cc4d36a3ec9bbbb4a (diff) | |
download | xen-f3ac9a462dc9e1d19efd1b2d7324fed69d7c36f4.tar.gz xen-f3ac9a462dc9e1d19efd1b2d7324fed69d7c36f4.tar.bz2 xen-f3ac9a462dc9e1d19efd1b2d7324fed69d7c36f4.zip |
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>
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install.sh b/install.sh index e7dbfc24b6..d51bc51eab 100755 --- a/install.sh +++ b/install.sh @@ -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/ |