[Midnightbsd-cvs] src [11307] trunk/usr.sbin/bsdinstall/scripts/services: add unbound
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Jul 4 10:06:22 EDT 2018
Revision: 11307
http://svnweb.midnightbsd.org/src/?rev=11307
Author: laffer1
Date: 2018-07-04 10:06:21 -0400 (Wed, 04 Jul 2018)
Log Message:
-----------
add unbound
Modified Paths:
--------------
trunk/usr.sbin/bsdinstall/scripts/services
Property Changed:
----------------
trunk/usr.sbin/bsdinstall/scripts/services
Modified: trunk/usr.sbin/bsdinstall/scripts/services
===================================================================
--- trunk/usr.sbin/bsdinstall/scripts/services 2018-07-04 14:05:27 UTC (rev 11306)
+++ trunk/usr.sbin/bsdinstall/scripts/services 2018-07-04 14:06:21 UTC (rev 11307)
@@ -24,11 +24,14 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
+# $FreeBSD: stable/10/usr.sbin/bsdinstall/scripts/services 273042 2014-10-13 15:53:01Z des $
# $MidnightBSD$
-# $FreeBSD: src/usr.sbin/bsdinstall/scripts/services,v 1.1 2011/02/18 14:54:34 nwhitehorn Exp $
+: ${DIALOG_OK=0}
+
if [ -f $BSDINSTALL_TMPETC/rc.conf.services ]; then
- eval `sed -e s/YES/on/I -e s/NO/off/I $BSDINSTALL_TMPETC/rc.conf.services`
+ eval $( sed -e s/YES/on/i -e s/NO/off/i \
+ $BSDINSTALL_TMPETC/rc.conf.services )
else
# Default service states. Everything is off if not enabled.
sshd_enable="on"
@@ -37,18 +40,30 @@
echo -n > $BSDINSTALL_TMPETC/rc.conf.services
exec 3>&1
-DAEMONS=$(dialog --backtitle "MidnightBSD Installer" \
+DAEMONS=$( dialog --backtitle "MidnightBSD Installer" \
--title "System Configuration" --nocancel --separate-output \
--checklist "Choose the services you would like to be started at boot:" \
0 0 0 \
+ local_unbound "Local caching validating resolver" ${local_unbound:-off} \
sshd "Secure shell daemon" ${sshd_enable:-off} \
moused "PS/2 mouse pointer on console" ${moused_enable:-off} \
ntpd "Synchronize system and network time" ${ntpd_enable:-off} \
- powerd "Adjust CPU frequency dynamically if supported" ${powerd_enable:-off} \
-2>&1 1>&3)
+ powerd "Adjust CPU frequency dynamically if supported" \
+ ${powerd_enable:-off} \
+ dumpdev "Enable kernel crash dumps to /var/crash" ${dumpdev:-on} \
+2>&1 1>&3 )
exec 3>&-
+havedump=
for daemon in $DAEMONS; do
+ [ "$daemon" = "dumpdev" ] && havedump=1 continue
echo ${daemon}_enable=\"YES\" >> $BSDINSTALL_TMPETC/rc.conf.services
done
+echo '# Set dumpdev to "AUTO" to enable crash dumps, "NO"' \
+ 'to disable' >> $BSDINSTALL_TMPETC/rc.conf.services
+if [ "$havedump" ]; then
+ echo dumpdev=\"AUTO\" >> $BSDINSTALL_TMPETC/rc.conf.services
+else
+ echo dumpdev=\"NO\" >> $BSDINSTALL_TMPETC/rc.conf.services
+fi
Property changes on: trunk/usr.sbin/bsdinstall/scripts/services
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list