Bug 153605 - /etc/sysconfig/network/scripts/ifup-wireless prints wrong error message
Summary: /etc/sysconfig/network/scripts/ifup-wireless prints wrong error message
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Mobile Devices (show other bugs)
Version: unspecified
Hardware: i686 SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: ---
Assignee: Joachim Gleissner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-27 01:57 UTC by Larry Finger
Modified: 2006-02-27 11:02 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Finger 2006-02-27 01:57:42 UTC
In the following sequence, if wpa_supplicant is not present in the path, the error printed is "cannot find awk, please install" rather than the correct message "cannot find wpa_supplicant, please install".

# check for needed tools
#
for i in iwconfig wlanctl-ng hexdump sed awk ; do
if [ -z "`type -p $i`" ] ; then
    err_mesg "cannot find '$i', please install"
    exit $R_ERROR
fi
done

if [ -z "`type -p wpa_supplicant`" ]; then
    if need_wpa_supplicant ; then
        err_mesg "cannot find '$i', please install"
        exit $R_ERROR
    fi
    PREFER_WPA_SUPPLICANT=no
fi
Comment 1 Joachim Gleissner 2006-02-27 11:02:56 UTC
This is already fixed in 10.1 and probably isn't worth an update for 10.0.