Deleted Added
full compact
mustberoot.subr (241653) mustberoot.subr (243476)
1if [ ! "$_MUSTBEROOT_SUBR" ]; then _MUSTBEROOT_SUBR=1
2#
3# Copyright (c) 2006-2012 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#
1if [ ! "$_MUSTBEROOT_SUBR" ]; then _MUSTBEROOT_SUBR=1
2#
3# Copyright (c) 2006-2012 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/share/mustberoot.subr 241653 2012-10-17 21:48:45Z dteske $
27# $FreeBSD: head/usr.sbin/bsdconfig/share/mustberoot.subr 243476 2012-11-24 07:02:31Z dteske $
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_include $BSDCFG_SHARE/dialog.subr
34
35BSDCFG_LIBE="/usr/libexec/bsdconfig"

--- 236 unchanged lines hidden (view full) ---

272{
273 local msg hline size width height
274
275 f_have sudo || f_die 1 "$msg_must_be_root_to_execute" "$pgm"
276
277 #
278 # Secure-mode has been requested.
279 #
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_include $BSDCFG_SHARE/dialog.subr
34
35BSDCFG_LIBE="/usr/libexec/bsdconfig"

--- 236 unchanged lines hidden (view full) ---

272{
273 local msg hline size width height
274
275 f_have sudo || f_die 1 "$msg_must_be_root_to_execute" "$pgm"
276
277 #
278 # Secure-mode has been requested.
279 #
280
280
281 [ "$USE_XDIALOG" ] || f_die 1 "$msg_secure_mode_requires_x11"
282 [ "$(id -u)" = "0" ] || f_die 1 "$msg_secure_mode_requires_root"
283
284 #
285 # Prompt for sudo(8) credentials.
286 #
287
288 msg="$msg_please_enter_username_password"

--- 136 unchanged lines hidden ---
281 [ "$USE_XDIALOG" ] || f_die 1 "$msg_secure_mode_requires_x11"
282 [ "$(id -u)" = "0" ] || f_die 1 "$msg_secure_mode_requires_root"
283
284 #
285 # Prompt for sudo(8) credentials.
286 #
287
288 msg="$msg_please_enter_username_password"

--- 136 unchanged lines hidden ---