diff options
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 |