rcconf (251965) | rcconf (252000) |
---|---|
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 251965 2013-06-18 21:35:38Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/startup/rcconf 252000 2013-06-19 18:13:58Z 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 --- 205 unchanged lines hidden (view full) --- 241 f_dialog_input_view_details 242 continue 243 fi 244 245 [ $retval -eq 0 ] || f_die 246 247 case "$mtag" in 248 "X $msg_exit") break ;; | 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 --- 205 unchanged lines hidden (view full) --- 241 f_dialog_input_view_details 242 continue 243 fi 244 245 [ $retval -eq 0 ] || f_die 246 247 case "$mtag" in 248 "X $msg_exit") break ;; |
249 "> $msg_add_new") 250 $BSDCFG_LIBE/$APP_DIR/rcadd ${USE_XDIALOG:+-X} 251 ;; | 249 "> $msg_add_new") $BSDCFG_LIBE/$APP_DIR/rcadd ${USE_XDIALOG:+-X} ;; |
252 "> $msg_delete") 253 # rcdelete has a similar interface that can inherit the below: 254 export SHOW_VALUE SHOW_DESC SHOW_DEFAULT_VALUE SHOW_CONFIGURED 255 $BSDCFG_LIBE/$APP_DIR/rcdelete ${USE_XDIALOG:+-X} 256 ;; 257 *) # Anything else is a variable to edit 258 $BSDCFG_LIBE/$APP_DIR/rcedit ${USE_XDIALOG:+-X} "${mtag# }" 259 esac 260done 261 262exit $SUCCESS 263 264################################################################################ 265# END 266################################################################################ | 250 "> $msg_delete") 251 # rcdelete has a similar interface that can inherit the below: 252 export SHOW_VALUE SHOW_DESC SHOW_DEFAULT_VALUE SHOW_CONFIGURED 253 $BSDCFG_LIBE/$APP_DIR/rcdelete ${USE_XDIALOG:+-X} 254 ;; 255 *) # Anything else is a variable to edit 256 $BSDCFG_LIBE/$APP_DIR/rcedit ${USE_XDIALOG:+-X} "${mtag# }" 257 esac 258done 259 260exit $SUCCESS 261 262################################################################################ 263# END 264################################################################################ |