diff options
author | dteske <dteske@FreeBSD.org> | 2012-10-26 00:31:25 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2012-10-26 00:31:25 +0000 |
commit | 28676bbae2f5bf85b90dc00212fdeebf6a374f53 (patch) | |
tree | c1df930faaba7fda6497c0525004a2e1ff99ac0d /usr.sbin/bsdconfig/security/kern_securelevel | |
parent | af24b41220e9050f629345994d8049991ba4d117 (diff) | |
download | FreeBSD-src-28676bbae2f5bf85b90dc00212fdeebf6a374f53.zip FreeBSD-src-28676bbae2f5bf85b90dc00212fdeebf6a374f53.tar.gz |
Switch from using a msgbox to display help files to a textbox instead. The
problem with using a msgbox was one of truncation in the case of Xdialog(1)
and lack of screen real-estate (since the msgbox is not scrollable in X11
while a textbox is).
The textbox renders the text much better and is more appropriate for this
type of data display.
Approved by: adrian (co-mentor) (implicit)
Diffstat (limited to 'usr.sbin/bsdconfig/security/kern_securelevel')
-rwxr-xr-x | usr.sbin/bsdconfig/security/kern_securelevel | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/security/kern_securelevel b/usr.sbin/bsdconfig/security/kern_securelevel index a0a7a95..1bb89d8 100755 --- a/usr.sbin/bsdconfig/security/kern_securelevel +++ b/usr.sbin/bsdconfig/security/kern_securelevel @@ -36,7 +36,8 @@ f_include $BSDCFG_SHARE/sysrc.subr BSDCFG_LIBE="/usr/libexec/bsdconfig" APP_DIR="130.security" f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr -f_include_help SECURELEVEL $BSDCFG_LIBE/$APP_DIR/include/securelevel.hlp + +SECURELEVEL_HELPFILE=$BSDCFG_LIBE/$APP_DIR/include/securelevel.hlp ipgm=$( f_index_menu_selection $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) [ $? -eq $SUCCESS -a "$ipgm" ] && pgm="$ipgm" @@ -119,7 +120,7 @@ while :; do if [ $retval -eq 2 ]; then # The Help button was pressed - f_show_msg "%s" "$( f_include_help SECURELEVEL )" + f_show_help "$SECURELEVEL_HELPFILE" continue elif [ $retval -ne 0 ]; then f_die |