variable.subr (260675) | variable.subr (263980) |
---|---|
1if [ ! "$_VARIABLE_SUBR" ]; then _VARIABLE_SUBR=1 2# | 1if [ ! "$_VARIABLE_SUBR" ]; then _VARIABLE_SUBR=1 2# |
3# Copyright (c) 2012-2013 Devin Teske | 3# Copyright (c) 2012-2014 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# | 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 $ | 27# $FreeBSD: stable/10/usr.sbin/bsdconfig/share/variable.subr 263980 2014-04-01 00:19:13Z 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 | 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_GROUP group 245f_variable_new VAR_GROUP_GID groupGid 246f_variable_new VAR_GROUP_MEMBERS groupMembers 247f_variable_new VAR_GROUP_PASSWORD groupPassword |
|
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 | 248f_variable_new VAR_HOSTNAME hostname 249f_variable_new VAR_HTTP_DIR httpDirectory 250f_variable_new VAR_HTTP_FTP_MODE httpFtpMode 251f_variable_new VAR_HTTP_HOST httpHost 252f_variable_new VAR_HTTP_PATH _httpPath 253f_variable_new VAR_HTTP_PORT httpPort 254f_variable_new VAR_HTTP_PROXY httpProxy 255f_variable_new VAR_HTTP_PROXY_HOST httpProxyHost --- 22 unchanged lines hidden (view full) --- 278f_variable_new VAR_PACKAGE package 279f_variable_new VAR_PKG_TMPDIR PKG_TMPDIR 280f_variable_new VAR_PORTS_PATH ports 281f_variable_new VAR_RELNAME releaseName 282f_variable_new VAR_SLOW_ETHER slowEthernetCard 283f_variable_new VAR_TRY_DHCP tryDHCP 284f_variable_new VAR_TRY_RTSOL tryRTSOL 285f_variable_new VAR_UFS_PATH ufs |
286f_variable_new VAR_USER user 287f_variable_new VAR_USER_ACCOUNT_EXPIRE userAccountExpire 288f_variable_new VAR_USER_DOTFILES_CREATE userDotfilesCreate 289f_variable_new VAR_USER_GECOS userGecos 290f_variable_new VAR_USER_GID userGid 291f_variable_new VAR_USER_GROUPS userGroups 292f_variable_new VAR_USER_GROUP_DELETE userGroupDelete 293f_variable_new VAR_USER_HOME userHome 294f_variable_new VAR_USER_HOME_CREATE userHomeCreate 295f_variable_new VAR_USER_HOME_DELETE userHomeDelete 296f_variable_new VAR_USER_LOGIN_CLASS userLoginClass 297f_variable_new VAR_USER_PASSWORD userPassword 298f_variable_new VAR_USER_PASSWORD_EXPIRE userPasswordExpire 299f_variable_new VAR_USER_SHELL userShell 300f_variable_new VAR_USER_UID userUid |
|
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 | 301f_variable_new VAR_ZFSINTERACTIVE zfsInteractive 302 303# 304# Self-initialize unless requested otherwise 305# 306f_dprintf "%s: VARIABLE_SELF_INITIALIZE=[%s]" \ 307 variable.subr "$VARIABLE_SELF_INITIALIZE" 308case "$VARIABLE_SELF_INITIALIZE" in 309""|0|[Nn][Oo]|[Oo][Ff][Ff]|[Ff][Aa][Ll][Ss][Ee]) : do nothing ;; 310*) f_variable_set_defaults 311esac 312 313f_dprintf "%s: Successfully loaded." variable.subr 314 315fi # ! $_VARIABLE_SUBR |