debuggers.hg

view tools/check/check_udev @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children b22f9ab1716a
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_or_fail udevinfo
12 [ "`udevinfo -V | awk '{print $NF}'`" -ge 59 ] 2>/dev/null || \
13 has hotplug || \
14 fail "udev is too old, upgrade to version 59 or later"
15 ;;
16 *)
17 fail "unknown OS"
18 ;;
19 esac