From eed6d43e0604dd1ecb6c6cce937454fb962ce7f0 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 23 May 2008 20:02:56 +0000 Subject: More WiFi information. List USB devices even if /proc/bus/usb is not mounted (by using sysfs as a fallback). Add one vendor. --- hardinfo2/configure | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'hardinfo2/configure') diff --git a/hardinfo2/configure b/hardinfo2/configure index 9ad12b2d..96e54179 100755 --- a/hardinfo2/configure +++ b/hardinfo2/configure @@ -178,6 +178,23 @@ fi # -------------------------------------------------------------------------- +echo -n "Checking for Linux Wireless Extensions (CONFIG_NET_RADIO)... " +if [ -e /proc/net/wireless ]; then + echo "found." + LINUX_WE=1 +else + echo "not found." + LINUX_WE=-1 +fi + +# -------------------------------------------------------------------------- + +if [ $LINUX_WE -eq -1 ]; then + echo "Disabling Linux Wireless Extensions support." +fi + +# -------------------------------------------------------------------------- + echo -e "\nWriting config.h..." rm -f config.h echo -e "#ifndef __CONFIG_H__\n#define __CONFIG_H__\n" > config.h @@ -199,6 +216,10 @@ if [ "$SOUP" == "1" ]; then echo "#define HAS_LIBSOUP" >> config.h fi +if [ "$LINUX_WE" == "1" ]; then + echo "#define HAS_LINUX_WE" >> config.h +fi + if [ "$RELEASE" == "1" ]; then echo "#define DEBUG(...)" >> config.h else -- cgit v1.2.3