source: trunk/packages/xen-common/xen-common/tools/check/check_iproute @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

  • Property svn:executable set to *
File size: 353 bytes
Line 
1#!/bin/sh
2# CHECK-INSTALL
3
4RC=0
5
6case ${OS} in
7OpenBSD|NetBSD|FreeBSD)
8        TOOL="ifconfig"
9        eval ${TOOL} -a 1>/dev/null 2>&1 || RC=1
10        ;;
11Linux)
12        TOOL="ip addr"
13        eval ${TOOL} list 1>/dev/null 2>&1 || RC=1
14        ;;
15*)
16        TOOL=""
17        echo "Unknown OS" && RC=1
18        ;;
19esac
20
21if test ${RC} -ne 0; then
22        echo
23        echo " *** Check for iproute (${TOOL}) FAILED"
24fi
25
26exit ${RC} 
Note: See TracBrowser for help on using the repository browser.