Deleted Added
sdiff udiff text old ( 260675 ) new ( 263980 )
full compact
1if [ ! "$_VARIABLE_SUBR" ]; then _VARIABLE_SUBR=1
2#
3# Copyright (c) 2012-2013 Devin Teske
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright

--- 7 unchanged lines hidden (view full) ---

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: stable/10/usr.sbin/bsdconfig/share/variable.subr 260675 2014-01-15 07:36:34Z dteske $
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_dprintf "%s: loading includes..." variable.subr
34f_include $BSDCFG_SHARE/dialog.subr
35f_include $BSDCFG_SHARE/strings.subr

--- 200 unchanged lines hidden (view full) ---

236f_variable_new VAR_FTP_DIR ftpDirectory
237f_variable_new VAR_FTP_HOST ftpHost
238f_variable_new VAR_FTP_PASS ftpPass
239f_variable_new VAR_FTP_PATH _ftpPath
240f_variable_new VAR_FTP_PORT ftpPort
241f_variable_new VAR_FTP_STATE ftpState
242f_variable_new VAR_FTP_USER ftpUser
243f_variable_new VAR_GATEWAY defaultrouter
244f_variable_new VAR_HOSTNAME hostname
245f_variable_new VAR_HTTP_DIR httpDirectory
246f_variable_new VAR_HTTP_FTP_MODE httpFtpMode
247f_variable_new VAR_HTTP_HOST httpHost
248f_variable_new VAR_HTTP_PATH _httpPath
249f_variable_new VAR_HTTP_PORT httpPort
250f_variable_new VAR_HTTP_PROXY httpProxy
251f_variable_new VAR_HTTP_PROXY_HOST httpProxyHost

--- 22 unchanged lines hidden (view full) ---

274f_variable_new VAR_PACKAGE package
275f_variable_new VAR_PKG_TMPDIR PKG_TMPDIR
276f_variable_new VAR_PORTS_PATH ports
277f_variable_new VAR_RELNAME releaseName
278f_variable_new VAR_SLOW_ETHER slowEthernetCard
279f_variable_new VAR_TRY_DHCP tryDHCP
280f_variable_new VAR_TRY_RTSOL tryRTSOL
281f_variable_new VAR_UFS_PATH ufs
282f_variable_new VAR_ZFSINTERACTIVE zfsInteractive
283
284#
285# Self-initialize unless requested otherwise
286#
287f_dprintf "%s: VARIABLE_SELF_INITIALIZE=[%s]" \
288 variable.subr "$VARIABLE_SELF_INITIALIZE"
289case "$VARIABLE_SELF_INITIALIZE" in
290""|0|[Nn][Oo]|[Oo][Ff][Ff]|[Ff][Aa][Ll][Ss][Ee]) : do nothing ;;
291*) f_variable_set_defaults
292esac
293
294f_dprintf "%s: Successfully loaded." variable.subr
295
296fi # ! $_VARIABLE_SUBR