Partially uncommit r249779. The changes to share/common.subr were good

while the remaining changes were part of a much larger ``secret sauce''
involved in an up-coming commit that I'm still laboring on.
This commit is contained in:
Devin Teske 2013-04-22 21:11:27 +00:00
parent 8c944ff559
commit d4fd7c1336
3 changed files with 12 additions and 54 deletions

View File

@ -111,15 +111,6 @@ f_media_options_menu()
'$msg_emit_extra_debugging_output'"
fi
f_getvar $VAR_NO_CONFIRM cp
if [ "$cp" ]; then menu_list="$menu_list
' $msg_yes_to_all' 'YES'
'$msg_assume_yes_to_all_non_critical_dialogs'"
else menu_list="$menu_list
' $msg_yes_to_all' 'NO'
'$msg_assume_yes_to_all_non_critical_dialogs'"
fi
f_getvar $VAR_TRY_DHCP cp
if [ "$cp" = "YES" ]; then menu_list="$menu_list
' $msg_dhcp' 'YES'
@ -188,11 +179,6 @@ f_media_options_menu()
' $msg_media_timeout' '$cp'
'$msg_timeout_value_in_seconds_for_slow_media'"
f_getvar $VAR_PKG_TMPDIR cp
menu_list="$menu_list
' $msg_package_temp' '$cp'
'$msg_directory_where_package_temporary_files_go'"
menu_list="$menu_list
' $msg_rescan_devices' '<*>'
'$msg_rerun_bsdconfig_initial_device_probe'
@ -274,12 +260,6 @@ f_media_options_menu()
else
export $VAR_DEBUG=1
fi ;;
" $msg_yes_to_all")
if f_getvar $VAR_NO_CONFIRM cp && [ "$cp" ]; then
unset $VAR_NO_CONFIRM
else
export $VAR_NO_CONFIRM=1
fi ;;
" $msg_dhcp")
f_getvar $VAR_TRY_DHCP cp
if [ "$cp" = "YES" ]; then
@ -310,10 +290,6 @@ f_media_options_menu()
f_variable_get_value $VAR_MEDIA_TIMEOUT \
"$msg_please_specify_the_number_of_seconds_to_wait"
;;
" $msg_package_temp")
f_variable_get_value $VAR_PKG_TMPDIR \
"$msg_please_specify_a_temporary_directory"
;;
" $msg_rescan_devices")
f_device_rescan ;;
" $msg_use_defaults")

View File

@ -32,7 +32,6 @@ BSDCFG_SHARE="/usr/share/bsdconfig"
. $BSDCFG_SHARE/common.subr || exit 1
f_dprintf "%s: loading includes..." script.subr
f_include $BSDCFG_SHARE/device.subr
f_include $BSDCFG_SHARE/packages.subr
f_include $BSDCFG_SHARE/variable.subr
f_include $BSDCFG_SHARE/media/any.subr
f_include $BSDCFG_SHARE/media/tcpip.subr
@ -152,38 +151,26 @@ f_script_load()
#
# Reserved words meant for scripting
#
f_resword_new loadConfig f_script_load # this file
f_resword_new deviceRescan f_device_rescan # device.subr
# variable.subr
f_resword_new installVarDefaults f_variable_set_defaults
f_resword_new deviceRescan f_device_rescan
f_resword_new dumpVariables f_dump_variables
# media/common.subr
f_resword_new mediaOpen f_media_open
f_resword_new loadConfig f_script_load
f_resword_new mediaClose f_media_close
f_resword_new mediaGetType f_media_get_type # media/any.subr
f_resword_new mediaSetCDROM f_media_set_cdrom # media/cdrom.subr
f_resword_new mediaSetDOS f_media_set_dos # media/dos.subr
f_resword_new mediaSetFloppy f_media_set_floppy # media/floppy.subr
f_resword_new mediaSetNFS f_media_set_nfs # media/nfs.subr
# media/ftp.subr
f_resword_new mediaGetType f_media_get_type
f_resword_new mediaOpen f_media_open
f_resword_new mediaSetCDROM f_media_set_cdrom
f_resword_new mediaSetDOS f_media_set_dos
f_resword_new mediaSetFTP f_media_set_ftp
f_resword_new mediaSetFTPActive f_media_set_ftp_active
f_resword_new mediaSetFTPPassive f_media_set_ftp_passive
f_resword_new mediaSetFTPUserPass f_media_set_ftp_userpass
# media/httpproxy.subr
f_resword_new mediaSetFloppy f_media_set_floppy
f_resword_new mediaSetHTTP f_media_set_http_proxy
f_resword_new mediaSetHTTPProxy f_media_set_http_proxy
f_resword_new mediaSetUFS f_media_set_ufs # media/ufs.subr
f_resword_new mediaSetUSB f_media_set_usb # media/usb.subr
f_resword_new optionsEditor f_media_options_menu # media/options.subr
f_resword_new tcpMenuSelect f_dialog_menu_select_tcp # media/tcp.subr
f_resword_new mediaSetNFS f_media_set_nfs
f_resword_new mediaSetUFS f_media_set_ufs
f_resword_new mediaSetUSB f_media_set_usb
f_resword_new optionsEditor f_media_options_menu
f_resword_new tcpMenuSelect f_dialog_menu_select_tcp
f_dprintf "%s: Successfully loaded." script.subr

View File

@ -117,7 +117,6 @@ f_variable_set_defaults()
setvar $VAR_NFS_SECURE "NO"
setvar $VAR_NFS_TCP "NO"
setvar $VAR_NFS_V3 "YES"
setvar $VAR_PKG_TMPDIR "/var/tmp"
setvar $VAR_RELNAME "$UNAME_R"
f_dprintf "f_variable_set_defaults: Defaults initialized."
@ -225,12 +224,8 @@ f_variable_new VAR_NFS_SECURE nfs_reserved_port_only
f_variable_new VAR_NFS_TCP nfs_use_tcp
f_variable_new VAR_NFS_V3 nfs_use_v3
f_variable_new VAR_NONINTERACTIVE nonInteractive
f_variable_new VAR_NO_CONFIRM noConfirm
f_variable_new VAR_NO_ERROR noError
f_variable_new VAR_NO_INET6 noInet6
f_variable_new VAR_PACKAGE package
f_variable_new VAR_PKG_TMPDIR PKG_TMPDIR
f_variable_new VAR_PORTS_PATH ports
f_variable_new VAR_RELNAME releaseName
f_variable_new VAR_SLOW_ETHER slowEthernetCard
f_variable_new VAR_TRY_DHCP tryDHCP