There's an API function for displaying errors

This commit is contained in:
Devin Teske 2016-12-13 02:27:38 +00:00
parent 35af83c188
commit 1d92999c48
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309986

View File

@ -167,8 +167,8 @@ EOF
#
if ! wpa_cli ping > /dev/null 2>&1; then
if [ ! "$BSDINSTALL_CONFIGCURRENT" ]; then
$DIALOG --backtitle "$DIALOG_BACKTITLE" --title "$msg_error" --msgbox \
"Wireless cannot be configured without making changes to the local system!" 0 0
f_show_err "Wireless cannot be configured without %s" \
"making changes to the local system!"
exit 1
fi
wpa_supplicant -B -i $1 -c "$BSDINSTALL_TMPETC/wpa_supplicant.conf") || exit 1