debuggers.hg

view tools/check/check_udev @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents c964dd391c7d
children
line source
1 #!/bin/sh
2 # CHECK-INSTALL
4 . ./funcs.sh
6 case $OS in
7 OpenBSD|NetBSD|FreeBSD)
8 has_or_fail vnconfig
9 ;;
10 Linux)
11 has /sbin/udevadm && \
12 udevver=`/sbin/udevadm info -V | awk '{print $NF}'`
13 [ -z "$udevver" ] && has_or_fail udevinfo && \
14 udevver=`udevinfo -V | awk '{print $NF}'`
15 [ "$udevver" -ge 59 ] 2>/dev/null || \
16 has hotplug || \
17 fail "udev is too old, upgrade to version 59 or later"
18 ;;
19 *)
20 fail "unknown OS"
21 ;;
22 esac