From owner-svn-src-all@freebsd.org Mon Dec 12 20:43:10 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DAF8C6E8CF; Mon, 12 Dec 2016 20:43:10 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 084C9F24; Mon, 12 Dec 2016 20:43:09 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBCKh9vR021889; Mon, 12 Dec 2016 20:43:09 GMT (envelope-from dteske@FreeBSD.org) Received: (from dteske@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBCKh93e021888; Mon, 12 Dec 2016 20:43:09 GMT (envelope-from dteske@FreeBSD.org) Message-Id: <201612122043.uBCKh93e021888@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dteske set sender to dteske@FreeBSD.org using -f From: Devin Teske Date: Mon, 12 Dec 2016 20:43:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309938 - head/usr.sbin/bsdinstall/scripts X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 20:43:10 -0000 Author: dteske Date: Mon Dec 12 20:43:09 2016 New Revision: 309938 URL: https://svnweb.freebsd.org/changeset/base/309938 Log: Use provided API (change "dialog" to "$DIALOG") Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig ============================================================================== --- head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 20:41:27 2016 (r309937) +++ head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 20:43:09 2016 (r309938) @@ -60,7 +60,7 @@ country_set() "$BSDINSTALL_TMPETC/wpa_supplicant.conf" fi if [ "$error_str" ]; then - dialog \ + $DIALOG \ --backtitle "$DIALOG_BACKTITLE" \ --title "Error" \ --yes-label Change \ @@ -111,7 +111,7 @@ dialog_country_select() f_dialog_menu_size height width rows \"Regdomain selection\" \ \"$DIALOG_BACKTITLE\" \"Select your regdomain.\" \ \"\" $regdomains - regdomain=$( sh -c "dialog \ + regdomain=$( sh -c "$DIALOG \ --backtitle \"$DIALOG_BACKTITLE\" \ --title \"Regdomain selection\" \ --cancel-label \"Skip\" \ @@ -125,7 +125,7 @@ dialog_country_select() f_dialog_menu_size height width rows \"Country selection\" \ \"$DIALOG_BACKTITLE\" \"Select your country.\" \ \"\" $countries - country=$( sh -c "dialog \ + country=$( sh -c "$DIALOG \ --backtitle \"$DIALOG_BACKTITLE\" \ --title \"Country selection\" \ --cancel-label \"Skip\" \ @@ -157,13 +157,13 @@ EOF # (wpa_cli ping >/dev/null 2>/dev/null || ([ "$BSDINSTALL_CONFIGCURRENT" ] && wpa_supplicant -B -i $1 -c "$BSDINSTALL_TMPETC/wpa_supplicant.conf")) || - (dialog --backtitle "$DIALOG_BACKTITLE" --title "Error" --msgbox \ + ($DIALOG --backtitle "$DIALOG_BACKTITLE" --title "Error" --msgbox \ "Could not start wpa_supplicant!" 0 0; exit 1) || exit 1 # See if we succeeded wpa_cli ping >/dev/null 2>/dev/null if [ $? -ne 0 -a ! "$BSDINSTALL_CONFIGCURRENT" ]; then - dialog \ + $DIALOG \ --backtitle "$DIALOG_BACKTITLE" \ --title "Error" \ --msgbox "Wireless cannot be configured without making changes to the local system!" \ @@ -183,7 +183,7 @@ if [ "$BSDINSTALL_CONFIGCURRENT" ]; then DEF_COUNTRY=$( echo $INPUT | cut -w -f 4 ) [ "$DEF_REGDOMAIN" = 0 ] && DEF_REGDOMAIN="" [ "$DEF_COUNTRY" = 0 ] && DEF_COUNTRY="" - dialog \ + $DIALOG \ --backtitle "$DIALOG_BACKTITLE" \ --title "Regdomain/country" \ --yesno "Change regdomain/country (now $DEF_REGDOMAIN/$DEF_COUNTRY)?" \ @@ -203,7 +203,7 @@ while :; do SCANSSID=0 output=$( wpa_cli scan 2>&1 ) f_dprintf "%s" "$output" - dialog \ + $DIALOG \ --backtitle "$DIALOG_BACKTITLE" \ --title "Scanning" \ --ok-label "Skip" \ @@ -219,7 +219,7 @@ while :; do ' | sort | uniq ) if [ ! "$NETWORKS" ]; then - dialog \ + $DIALOG \ --backtitle "$DIALOG_BACKTITLE" \ --title "Error" \ --yesno "No wireless networks were found. Rescan?" \ @@ -228,7 +228,7 @@ while :; do fi exec 3>&1 - NETWORK=$( sh -c "dialog \ + NETWORK=$( sh -c "$DIALOG \ --extra-button \ --extra-label \"Rescan\" \ --backtitle \"$DIALOG_BACKTITLE\" \ @@ -247,7 +247,7 @@ while :; do f_dialog_title "Network Selection" f_dialog_yesno "Do you want to select the network manually?" || exit 1 f_dialog_input NETWORK "Enter SSID" || exit 1 - ENCRYPTION=$( dialog \ + ENCRYPTION=$( $DIALOG \ --backtitle "$DIALOG_BACKTITLE" \ --title "$DIALOG_TITLE" \ --menu "Select encryption type" \ @@ -273,7 +273,7 @@ done if echo $ENCRYPTION | grep -q 'PSK'; then exec 3>&1 - PASS=$( dialog \ + PASS=$( $DIALOG \ --insecure \ --backtitle "$DIALOG_BACKTITLE" \ --title "WPA Setup" \ @@ -295,7 +295,7 @@ if echo $ENCRYPTION | grep -q 'PSK'; the EOF elif echo $ENCRYPTION | grep -q EAP; then exec 3>&1 - USERPASS=$( dialog \ + USERPASS=$( $DIALOG \ --insecure \ --backtitle "$DIALOG_BACKTITLE" \ --title "WPA-Enterprise Setup" \ @@ -325,7 +325,7 @@ elif echo $ENCRYPTION | grep -q EAP; the EOF elif echo $ENCRYPTION | grep -q WEP; then exec 3>&1 - WEPKEY=$( dialog \ + WEPKEY=$( $DIALOG \ --insecure \ --backtitle "$DIALOG_BACKTITLE" \ --title "WEP Setup" \