Hi.

        I want to mixer in /etc/rc (setting sound volume on boot).
        I add it to /etc/rc, /etc/defaults/rc.conf, etc...
        Would you review and commit?

for CURRENT
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Index: rc
===================================================================
RCS file: /home/ncvs/src/etc/rc,v
retrieving revision 1.326
diff -u -r1.326 rc
--- rc  23 Dec 2002 07:09:44 -0000      1.326
+++ rc  19 Mar 2003 04:56:17 -0000
@@ -768,6 +768,12 @@
        ;;
 esac
 
+case ${mixer_enable} in
+[Yy][Ee][Ss])
+       echo -n ' mixer';       ${mixer_program:-/usr/sbin/mixer} ${mixer_flags}
+       ;;
+esac
+
 case ${sshd_enable} in
 [Yy][Ee][Ss])
        if [ -x ${sshd_program:-/usr/sbin/sshd} ]; then
Index: defaults/rc.conf
===================================================================
RCS file: /home/ncvs/src/etc/defaults/rc.conf,v
retrieving revision 1.171
diff -u -r1.171 rc.conf
--- defaults/rc.conf    17 Mar 2003 23:15:53 -0000      1.171
+++ defaults/rc.conf    19 Mar 2003 04:54:22 -0000
@@ -426,6 +426,9 @@
 harvest_ethernet="YES" # Entropy device harvests ethernet randomness
 harvest_p_to_p="YES"   # Entropy device harvests point-to-point randomness
 dmesg_enable="YES"     # Save dmesg(8) to /var/run/dmesg.boot
+mixer_enable="NO"      # setup mixer volume
+mixer_program="/usr/sbin/mixer"        # Which mixer executable to run (if enabled).
+mixer_flags="vol 100"  # mixer volume value
 
 ##############################################################
 ### Define source_rc_confs, the mechanism used by /etc/rc.* ##
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

for CURRENT which rcng (/etc/rc.d/mixer)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: mixer
# KEYWORD: FreeBSD NetBSD

. /etc/rc.subr

name="mixer"
rcvar=`set_rcvar`
command="/usr/sbin/${name}"

load_rc_config $name
run_rc_command "$1"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



for STABLE
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Index: etc/rc
===================================================================
RCS file: /home/ncvs/src/etc/rc,v
retrieving revision 1.212.2.51
diff -u -r1.212.2.51 rc
--- etc/rc      17 Oct 2002 17:25:07 -0000      1.212.2.51
+++ etc/rc      19 Mar 2003 04:51:34 -0000
@@ -531,6 +531,12 @@
        ;;
 esac
 
+case ${mixer_enable} in
+[Yy][Ee][Ss])
+       echo -n ' mixer';       ${mixer_program:-/usr/sbin/mixer} ${mixer_flags}
+       ;;
+esac
+
 case ${sshd_enable} in
 [Yy][Ee][Ss])
        if [ -x ${sshd_program:-/usr/sbin/sshd} ]; then
Index: etc/defaults/rc.conf
===================================================================
RCS file: /home/ncvs/src/etc/defaults/rc.conf,v
retrieving revision 1.53.2.62
diff -u -r1.53.2.62 rc.conf
--- etc/defaults/rc.conf        12 Feb 2003 03:56:46 -0000      1.53.2.62
+++ etc/defaults/rc.conf        19 Mar 2003 04:52:10 -0000
@@ -378,6 +378,9 @@
 update_motd="YES"      # update version info in /etc/motd (or NO)
 start_vinum="NO"       # set to YES to start vinum
 unaligned_print="YES"  # print unaligned access warnings on the alpha (or NO).
+mixer_enable="NO"      # setup mixer volume
+mixer_program="/usr/sbin/mixer"        # Which mixer executable to run (if enabled).
+mixer_flags="vol 100"  # mixer volume value
 
 ##############################################################
 ### Define source_rc_confs, the mechanism used by /etc/rc.* ##
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to