rcedit.subr (526e1dc1c0d052b9d2a6cd6da7a16eb09c971c54) rcedit.subr (56961fd7949de755f95a60fe8ac936f81e953f5b)
1if [ ! "$_STARTUP_RCEDIT_SUBR" ]; then _STARTUP_RCEDIT_SUBR=1
2#
3# Copyright (c) 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:

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

25# SUCH DAMAGE.
26#
27# $FreeBSD$
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
1if [ ! "$_STARTUP_RCEDIT_SUBR" ]; then _STARTUP_RCEDIT_SUBR=1
2#
3# Copyright (c) 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:

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

25# SUCH DAMAGE.
26#
27# $FreeBSD$
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_dprintf "%s: loading includes..." startup/rcedit.subr
33f_include $BSDCFG_SHARE/dialog.subr
34f_include $BSDCFG_SHARE/sysrc.subr
35
36BSDCFG_LIBE="/usr/libexec/bsdconfig" APP_DIR="140.startup"
37f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr
38
39############################################################ FUNCTIONS
40

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

76 [ "$_input" = "$cur_val" ] && return $SUCCESS
77
78 f_dprintf "%s: [%s]->[%s]" "$var" "$cur_val" "$_input"
79
80 err=$( f_sysrc_set "$var" "$_input" 2>&1 ) ||
81 f_show_msg "$err"
82}
83
34f_include $BSDCFG_SHARE/dialog.subr
35f_include $BSDCFG_SHARE/sysrc.subr
36
37BSDCFG_LIBE="/usr/libexec/bsdconfig" APP_DIR="140.startup"
38f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr
39
40############################################################ FUNCTIONS
41

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

77 [ "$_input" = "$cur_val" ] && return $SUCCESS
78
79 f_dprintf "%s: [%s]->[%s]" "$var" "$cur_val" "$_input"
80
81 err=$( f_sysrc_set "$var" "$_input" 2>&1 ) ||
82 f_show_msg "$err"
83}
84
85############################################################ MAIN
86
87f_dprintf "%s: Successfully loaded." startup/rcedit.subr
88
84fi # ! $_STARTUP_RCEDIT_SUBR
89fi # ! $_STARTUP_RCEDIT_SUBR