]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
There's an API function for displaying errors
authordteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 02:27:38 +0000 (02:27 +0000)
committerdteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 02:27:38 +0000 (02:27 +0000)
usr.sbin/bsdinstall/scripts/wlanconfig

index 3eb501815fac9b76ca66812432194951d815797b..08800faa5b423cc8b4352a1489881c5df7bc2b07 100755 (executable)
@@ -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