rcconf (251264) | rcconf (251266) |
---|---|
1#!/bin/sh 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: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INLUDING, 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# | 1#!/bin/sh 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: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INLUDING, 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: head/usr.sbin/bsdconfig/startup/rcconf 251264 2013-06-02 20:02:50Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/startup/rcconf 251266 2013-06-02 22:34:40Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." "$0" 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/mustberoot.subr --- 117 unchanged lines hidden (view full) --- 153 desc = ENVIRON["_" var "_desc"] 154 gsub(/'\''/, "'\''\\'\'\''", desc) 155 printf " '\''%s'\''", desc 156 } 157 printf "\n" 158 }' 159 )" 160 | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." "$0" 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/mustberoot.subr --- 117 unchanged lines hidden (view full) --- 153 desc = ENVIRON["_" var "_desc"] 154 gsub(/'\''/, "'\''\\'\'\''", desc) 155 printf " '\''%s'\''", desc 156 } 157 printf "\n" 158 }' 159 )" 160 |
161 set -f # noglob | 161 set -f # set noglob because descriptions in the $menu_list may contain 162 # `*' and get expanded by dialog(1) (doesn't affect Xdialog(1)). 163 # This prevents dialog(1) from expanding wildcards in help line. |
162 163 local height width rows 164 eval f_dialog_menu${SHOW_DESC:+_with_help}_size \ 165 height width rows \ 166 \"\$DIALOG_TITLE\" \ 167 \"\$DIALOG_BACKTITLE\" \ 168 \"\$prompt\" \ 169 \"\$hline\" \ --- 92 unchanged lines hidden --- | 164 165 local height width rows 166 eval f_dialog_menu${SHOW_DESC:+_with_help}_size \ 167 height width rows \ 168 \"\$DIALOG_TITLE\" \ 169 \"\$DIALOG_BACKTITLE\" \ 170 \"\$prompt\" \ 171 \"\$hline\" \ --- 92 unchanged lines hidden --- |