diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-05-23 20:02:56 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-05-23 20:02:56 +0000 |
commit | eed6d43e0604dd1ecb6c6cce937454fb962ce7f0 (patch) | |
tree | 40cc315ea076aeab70660b9daad465f56a6d1db5 /hardinfo2/configure | |
parent | a41c29b935c4950124bbd4b34f4867f71dd45a6e (diff) |
More WiFi information.
List USB devices even if /proc/bus/usb is not mounted (by using sysfs as a fallback).
Add one vendor.
Diffstat (limited to 'hardinfo2/configure')
-rwxr-xr-x | hardinfo2/configure | 21 |
1 files changed, 21 insertions, 0 deletions
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 |