Bug 153605

Summary: /etc/sysconfig/network/scripts/ifup-wireless prints wrong error message
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Larry Finger <Larry.Finger>
Component: Mobile DevicesAssignee: Joachim Gleissner <joachim.gleissner>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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.