[BACK]Return to rc CVS log [TXT][DIR] Up to [local] / src / etc

Annotation of src/etc/rc, Revision 1.427

1.427   ! bluhm       1: #      $OpenBSD: rc,v 1.426 2014/04/24 15:05:10 tedu Exp $
1.1       deraadt     2:
                      3: # System startup script run by init on autoboot
                      4: # or after single-user.
                      5: # Output and error are redirected to console by init,
                      6: # and the console is the controlling terminal.
                      7:
1.131     millert     8: # Subroutines (have to come first).
                      9:
                     10: # Strip comments (and leading/trailing whitespace if IFS is set)
                     11: # from a file and spew to stdout
                     12: stripcom() {
                     13:        local _file="$1"
                     14:        local _line
                     15:
                     16:        {
                     17:                while read _line ; do
                     18:                        _line=${_line%%#*}              # strip comments
                     19:                        test -z "$_line" && continue
                     20:                        echo $_line
                     21:                done
                     22:        } < $_file
                     23: }
                     24:
1.265     millert    25: # Update resource limits when sysctl changes
                     26: # Usage: update_limit -X loginconf_name
                     27: update_limit() {
                     28:        local _fl="$1"  # ulimit flag
                     29:        local _lc="$2"  # login.conf name
                     30:        local _new _suf
                     31:
                     32:        for _suf in "" -cur -max; do
                     33:                _new=`getcap -f /etc/login.conf -s ${_lc}${_suf} daemon 2>/dev/null`
                     34:                if [ X"$_new" != X"" ]; then
                     35:                        if [ X"$_new" = X"infinity" ]; then
                     36:                                _new=unlimited
                     37:                        fi
                     38:                        case "$_suf" in
                     39:                        -cur)
                     40:                                ulimit -S $_fl $_new
                     41:                                ;;
                     42:                        -max)
                     43:                                ulimit -H $_fl $_new
                     44:                                ;;
                     45:                        *)
                     46:                                ulimit $_fl $_new
                     47:                                return
                     48:                                ;;
                     49:                        esac
                     50:                fi
                     51:        done
                     52: }
                     53:
                     54: sysctl_conf() {
1.267     millert    55:        test -s /etc/sysctl.conf || return
                     56:
1.265     millert    57:        # delete comments and blank lines
                     58:        set -- `stripcom /etc/sysctl.conf`
                     59:        while [ $# -ge 1 ] ; do
                     60:                sysctl $1
                     61:                # update limits if needed
                     62:                case $1 in
                     63:                kern.maxproc=*)
                     64:                        update_limit -p maxproc
                     65:                        ;;
                     66:                kern.maxfiles=*)
                     67:                        update_limit -n openfiles
                     68:                        ;;
                     69:                esac
                     70:                shift
                     71:        done
                     72: }
                     73:
                     74: mixerctl_conf()
                     75: {
1.267     millert    76:        test -s /etc/mixerctl.conf || return
                     77:
1.265     millert    78:        # delete comments and blank lines
                     79:        set -- `stripcom /etc/mixerctl.conf`
                     80:        while [ $# -ge 1 ] ; do
                     81:                mixerctl -q $1 > /dev/null 2>&1
                     82:                shift
                     83:        done
                     84: }
                     85:
1.267     millert    86: wsconsctl_conf()
                     87: {
                     88:        local save_IFS="$IFS"
                     89:
                     90:        test -x /sbin/wsconsctl -a -s /etc/wsconsctl.conf || return
                     91:        # delete comments and blank lines
                     92:        IFS="
                     93: "
                     94:        set -- `stripcom /etc/wsconsctl.conf`
                     95:        IFS="$save_IFS"
                     96:        while [ $# -ge 1 ] ; do
1.356     deraadt    97:                eval wsconsctl $1
1.267     millert    98:                shift
                     99:        done
                    100: }
                    101:
1.312     djm       102: random_seed()
                    103: {
1.427   ! bluhm     104:        # push the old seed into the kernel
        !           105:        dd if=/var/db/host.random of=/dev/random bs=65536 count=1 status=none
        !           106:        chmod 600 /var/db/host.random
        !           107:        # ... and create a future seed
        !           108:        dd if=/dev/random of=/var/db/host.random bs=65536 count=1 status=none
        !           109:        # and create a seed file for the boot-loader
        !           110:        dd if=/dev/random of=/etc/random.seed bs=512 count=1 status=none
        !           111:        chmod 600 /etc/random.seed
1.312     djm       112: }
                    113:
1.318     djm       114: fill_baddynamic()
                    115: {
1.390     halex     116:        local _service=$1
1.318     djm       117:        local _sysctl="net.inet.${_service}.baddynamic"
1.390     halex     118:        stripcom /etc/services |
                    119:        {
                    120:                # Variables are local
                    121:                while IFS="     /" read _name _port _srv _junk; do
1.391     halex     122:                        [ "x${_srv}" = "x${_service}" ] || continue
1.390     halex     123:                        _ban="${_ban:+${_ban},}+${_port}"
                    124:                        # Flush before argv gets too long
                    125:                        if [ ${#_ban} -gt 1024 ]; then
                    126:                                sysctl -q ${_sysctl}=${_ban}
                    127:                                _ban=""
                    128:                        fi
                    129:                done
                    130:                [ "${_ban}" ] && sysctl -q ${_sysctl}=${_ban}
                    131:        }
1.318     djm       132: }
                    133:
1.353     robert    134: start_daemon()
                    135: {
1.354     robert    136:        local _n
1.353     robert    137:        for _n; do
                    138:                eval _do=\${${_n}_flags}
                    139:                if [ X"${_do}" != X"NO" ]; then
                    140:                        /etc/rc.d/${_n} start
                    141:                fi
                    142:        done
                    143: }
                    144:
1.373     deraadt   145: make_keys()
                    146: {
                    147:        if [ X"${named_flags}" != X"NO" ]; then
                    148:                if ! cmp -s /etc/rndc.key /var/named/etc/rndc.key ; then
                    149:                        echo -n "rndc-confgen: generating shared secret... "
                    150:                        if rndc-confgen -a -t /var/named >/dev/null 2>&1; then
                    151:                                chmod 0640 /var/named/etc/rndc.key \
                    152:                                    >/dev/null 2>&1
                    153:                                echo done.
                    154:                        else
                    155:                                echo failed.
                    156:                        fi
                    157:                fi
                    158:        fi
                    159:
                    160:        if [ ! -f /etc/isakmpd/private/local.key ]; then
                    161:                echo -n "openssl: generating isakmpd/iked RSA key... "
                    162:                if openssl genrsa -out /etc/isakmpd/private/local.key 2048 \
                    163:                    >/dev/null 2>&1; then
                    164:                        chmod 600 /etc/isakmpd/private/local.key
                    165:                        openssl rsa -out /etc/isakmpd/local.pub -in \
                    166:                            /etc/isakmpd/private/local.key -pubout \
                    167:                            >/dev/null 2>&1
                    168:                        echo done.
                    169:                else
                    170:                        echo failed.
                    171:                fi
                    172:        fi
                    173:
                    174:        if [ ! -f /etc/iked/private/local.key ]; then
                    175:                # Just copy the generated isakmpd key
                    176:                cp /etc/isakmpd/private/local.key /etc/iked/private/local.key
                    177:                chmod 600 /etc/iked/private/local.key
                    178:                cp /etc/isakmpd/local.pub /etc/iked/local.pub
                    179:        fi
                    180:
                    181:        ssh-keygen -A
                    182: }
                    183:
                    184: # create Unix sockets directories for X if needed and make sure they have
                    185: # correct permissions
                    186: setup_X_sockets()
                    187: {
                    188:        if [ -d /usr/X11R6/lib ]; then
                    189:                for d in /tmp/.X11-unix /tmp/.ICE-unix ; do
                    190:                        if [ -d $d ]; then
                    191:                                if [ `ls -ld $d | cut -d' ' -f4` \
                    192:                                    != root ]; then
                    193:                                        chown root $d
                    194:                                fi
                    195:                                if [ `ls -ld $d | cut -d' ' -f1` \
                    196:                                    != drwxrwxrwt ]; then
                    197:                                        chmod 1777 $d
                    198:                                fi
                    199:                        elif [ -e $d ]; then
                    200:                                echo "Error: $d exists and isn't a directory."
                    201:                        else
                    202:                                mkdir -m 1777 $d
                    203:                        fi
                    204:                done
                    205:        fi
                    206: }
                    207:
1.131     millert   208: # End subroutines
                    209:
1.1       deraadt   210: stty status '^T'
                    211:
                    212: # Set shell to ignore SIGINT (2), but not children;
                    213: # shell catches SIGQUIT (3) and returns to single user after fsck.
                    214: trap : 2
                    215: trap : 3       # shouldn't be needed
                    216:
                    217: HOME=/; export HOME
1.349     robert    218: INRC=1; export INRC
1.1       deraadt   219: PATH=/sbin:/bin:/usr/sbin:/usr/bin
                    220: export PATH
1.395     deraadt   221:
                    222: # must set the domainname before rc.conf, so YP startup choices can be made
                    223: if [ -f /etc/defaultdomain ]; then
                    224:        domainname `stripcom /etc/defaultdomain`
                    225: fi
1.108     deraadt   226:
1.343     robert    227: # pick up option configuration
                    228: . /etc/rc.conf
                    229:
1.266     millert   230: if [ X"$1" = X"shutdown" ]; then
1.416     rpe       231:        random_seed
                    232:
1.419     millert   233:        # If we are in secure level 0, assume single user mode.
                    234:        if [ `sysctl -n kern.securelevel` -ne 0 ]; then
1.421     schwarze  235:                pkg_scripts=${pkg_scripts%%*( )}
1.413     deraadt   236:                if [ -n "${pkg_scripts}" ]; then
                    237:                        echo -n 'stopping package daemons:'
                    238:                        while [ -n "${pkg_scripts}" ]; do
                    239:                                _r=${pkg_scripts##* }
                    240:                                pkg_scripts=${pkg_scripts%%*( )${_r}}
                    241:                                [ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop
                    242:                        done
                    243:                        echo '.'
                    244:                fi
                    245:
1.108     deraadt   246:                echo /etc/rc.shutdown in progress...
                    247:                . /etc/rc.shutdown
                    248:                echo /etc/rc.shutdown complete.
1.413     deraadt   249:        else
                    250:                echo single user: not running shutdown scripts
                    251:        fi
1.240     mcbride   252:
1.413     deraadt   253:        # bring carp interfaces down gracefully
                    254:        ifconfig | while read a b; do
                    255:                case $a in
                    256:                carp+([0-9]):) ifconfig ${a%:} down ;;
                    257:                esac
                    258:        done
1.246     mcbride   259:
1.413     deraadt   260:        if [ X"${powerdown}" = X"YES" ]; then
                    261:                exit 2
1.108     deraadt   262:        fi
                    263:        exit 0
1.1       deraadt   264: fi
1.98      jakob     265:
1.172     miod      266: swapctl -A -t blk
1.170     deraadt   267:
1.17      deraadt   268: if [ -e /fastboot ]; then
1.1       deraadt   269:        echo "Fast boot: skipping disk checks."
1.266     millert   270: elif [ X"$1" = X"autoboot" ]; then
1.1       deraadt   271:        echo "Automatic boot in progress: starting file system checks."
1.31      millert   272:        fsck -p
1.1       deraadt   273:        case $? in
                    274:        0)
                    275:                ;;
                    276:        2)
                    277:                exit 1
                    278:                ;;
                    279:        4)
                    280:                echo "Rebooting..."
                    281:                reboot
                    282:                echo "Reboot failed; help!"
                    283:                exit 1
                    284:                ;;
                    285:        8)
                    286:                echo "Automatic file system check failed; help!"
                    287:                exit 1
                    288:                ;;
                    289:        12)
                    290:                echo "Boot interrupted."
                    291:                exit 1
                    292:                ;;
                    293:        130)
                    294:                # interrupt before catcher installed
                    295:                exit 1
                    296:                ;;
                    297:        *)
                    298:                echo "Unknown error; help!"
                    299:                exit 1
                    300:                ;;
                    301:        esac
                    302: fi
                    303:
                    304: trap "echo 'Boot interrupted.'; exit 1" 3
                    305:
                    306: umount -a >/dev/null 2>&1
1.303     grunk     307: mount -a -t nonfs,vnd
1.57      niklas    308: mount -uw /            # root on nfs requires this, others aren't hurt
1.1       deraadt   309: rm -f /fastboot                # XXX (root now writeable)
1.177     deraadt   310:
1.255     henning   311: # set flags on ttys.  (do early, in case they use tty for SLIP in netstart)
1.1       deraadt   312: echo 'setting tty flags'
                    313: ttyflags -a
1.77      angelos   314:
1.252     mcbride   315: if [ -f /sbin/kbd -a -f /etc/kbdtype ]; then
                    316:        kbd `cat /etc/kbdtype`
                    317: fi
                    318:
1.279     deraadt   319: wsconsctl_conf
                    320:
1.266     millert   321: if [ X"${pf}" != X"NO" ]; then
1.211     mcbride   322:        RULES="block all"
1.228     henning   323:        RULES="$RULES\npass on lo0"
1.195     dhartmei  324:        RULES="$RULES\npass in proto tcp from any to any port 22 keep state"
1.208     camield   325:        RULES="$RULES\npass out proto { tcp, udp } from any to any port 53 keep state"
1.215     camield   326:        RULES="$RULES\npass out inet proto icmp all icmp-type echoreq keep state"
1.420     claudio   327:        RULES="$RULES\npass out inet proto udp from any port bootpc to any port bootps"
                    328:        RULES="$RULES\npass in inet proto udp from any port bootps to any port bootpc"
1.257     grange    329:        if ifconfig lo0 inet6 >/dev/null 2>&1; then
1.258     itojun    330:                RULES="$RULES\npass out inet6 proto icmp6 all icmp6-type neighbrsol"
                    331:                RULES="$RULES\npass in inet6 proto icmp6 all icmp6-type neighbradv"
1.257     grange    332:                RULES="$RULES\npass out inet6 proto icmp6 all icmp6-type routersol"
                    333:                RULES="$RULES\npass in inet6 proto icmp6 all icmp6-type routeradv"
1.420     claudio   334:                RULES="$RULES\npass out inet6 proto udp from any port dhcpv6-client to any port dhcpv6-server"
                    335:                RULES="$RULES\npass in inet6 proto udp from any port dhcpv6-server to any port dhcpv6-client"
1.257     grange    336:        fi
1.424     henning   337:        RULES="$RULES\npass in proto carp keep state (no-sync)"
                    338:        RULES="$RULES\npass out proto carp !received-on any keep state (no-sync)"
1.193     deraadt   339:        case `sysctl vfs.mounts.nfs 2>/dev/null` in
1.184     deraadt   340:        *[1-9]*)
                    341:                # don't kill NFS
1.324     henning   342:                RULES="set reassemble yes no-df\n$RULES"
1.306     deraadt   343:                RULES="$RULES\npass in proto { tcp, udp } from any port { 111, 2049 } to any"
1.424     henning   344:                RULES="$RULES\npass out proto { tcp, udp } from any to any port { 111, 2049 } !received-on any"
1.184     deraadt   345:                ;;
                    346:        esac
1.269     dhartmei  347:        echo $RULES | pfctl -f -
                    348:        pfctl -e
1.176     kjell     349: fi
1.318     djm       350:
                    351: # Fill net.inet.(tcp|udp).baddynamic lists from /etc/services
                    352: fill_baddynamic udp
                    353: fill_baddynamic tcp
1.176     kjell     354:
1.267     millert   355: sysctl_conf
1.260     jsg       356:
1.1       deraadt   357: # set hostname, turn on network
                    358: echo 'starting network'
1.289     henning   359: ifconfig -g carp carpdemote 128
1.264     deraadt   360: if [ -f /etc/resolv.conf.save ]; then
1.334     deraadt   361:        mv -f /etc/resolv.conf.save /etc/resolv.conf
1.264     deraadt   362:        touch /etc/resolv.conf
                    363: fi
1.1       deraadt   364: . /etc/netstart
1.412     deraadt   365: dmesg > /dev/random    # any write triggers an RC4 rekey
1.176     kjell     366:
1.266     millert   367: if [ X"${pf}" != X"NO" ]; then
1.176     kjell     368:        if [ -f ${pf_rules} ]; then
1.198     dhartmei  369:                pfctl -f ${pf_rules}
1.309     mpf       370:        fi
                    371:        # bring up pfsync after the working ruleset has been loaded
1.367     deraadt   372:        if [ -f /etc/hostname.pfsync0 ]; then
                    373:                . /etc/netstart pfsync0
                    374:        fi
1.176     kjell     375: fi
1.1       deraadt   376:
1.278     otto      377: mount -s /usr >/dev/null 2>&1
                    378: mount -s /var >/dev/null 2>&1
1.180     deraadt   379:
1.389     deraadt   380: random_seed
1.29      deraadt   381:
1.55      deraadt   382: # clean up left-over files
1.376     deraadt   383: rm -f /etc/nologin /var/spool/lock/LCK.* /var/spool/uucp/STST/*
1.247     henning   384: (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
1.196     beck      385: (cd /var/authpf && rm -rf -- *)
1.96      alex      386:
                    387: # save a copy of the boot messages
                    388: dmesg >/var/run/dmesg.boot
1.55      deraadt   389:
1.373     deraadt   390: make_keys
                    391:
1.379     deraadt   392: echo -n 'starting early daemons:'
1.423     sthen     393: start_daemon syslogd ldattach pflogd named nsd unbound ntpd
                    394: start_daemon isakmpd iked sasyncd ldapd npppd
1.353     robert    395: echo '.'
1.280     hshoexer  396:
                    397: if [ X"${ipsec}" != X"NO" ]; then
                    398:        if [ -f ${ipsec_rules} ]; then
                    399:                ipsecctl -f ${ipsec_rules}
                    400:        fi
1.40      provos    401: fi
1.1       deraadt   402:
1.379     deraadt   403: echo -n 'starting RPC daemons:'
1.399     dlg       404: start_daemon portmap ypldap
1.376     deraadt   405: if [ X"`domainname`" != X"" ]; then
1.385     deraadt   406:        start_daemon ypserv ypbind yppasswdd
1.376     deraadt   407: fi
1.399     dlg       408: start_daemon mountd nfsd lockd statd amd
1.1       deraadt   409: echo '.'
1.58      deraadt   410:
1.278     otto      411: mount -a
1.172     miod      412: swapctl -A -t noblk
1.1       deraadt   413:
                    414: # /var/crash should be a directory or a symbolic link
                    415: # to the crash directory if core dumps are to be saved.
                    416: if [ -d /var/crash ]; then
1.188     tholo     417:        savecore ${savecore_flags} /var/crash
1.90      art       418: fi
                    419:
1.266     millert   420: if [ X"${check_quotas}" = X"YES" ]; then
1.41      downsj    421:        echo -n 'checking quotas:'
                    422:        quotacheck -a
                    423:        echo ' done.'
                    424:        quotaon -a
                    425: fi
1.1       deraadt   426:
1.376     deraadt   427: kvm_mkdb                       # build kvm(3) databases
1.1       deraadt   428: dev_mkdb
1.101     deraadt   429: chmod 666 /dev/tty[pqrstuvwxyzPQRST]*
1.226     millert   430: chown root:wheel /dev/tty[pqrstuvwxyzPQRST]*
1.1       deraadt   431:
                    432: # check the password temp/lock file
1.17      deraadt   433: if [ -f /etc/ptmp ]; then
1.1       deraadt   434:        logger -s -p auth.err \
1.376     deraadt   435:            'password file may be incorrect -- /etc/ptmp exists'
1.32      deraadt   436: fi
                    437:
1.49      millert   438: echo clearing /tmp
                    439:
                    440: # prune quickly with one rm, then use find to clean up /tmp/[lq]*
                    441: # (not needed with mfs /tmp, but doesn't hurt there...)
1.339     sthen     442: (cd /tmp && rm -rf [a-km-pr-zA-Z]*)
                    443: (cd /tmp &&
1.49      millert   444:     find . ! -name . ! -name lost+found ! -name quota.user \
1.103     millert   445:        ! -name quota.group -execdir rm -rf -- {} \; -type d -prune)
1.373     deraadt   446:
                    447: setup_X_sockets
1.203     hugh      448:
1.72      deraadt   449: [ -f /etc/rc.securelevel ] && . /etc/rc.securelevel
1.266     millert   450: if [ X"${securelevel}" != X"" ]; then
1.33      millert   451:        echo -n 'setting kernel security level: '
1.234     jmc       452:        sysctl kern.securelevel=${securelevel}
1.1       deraadt   453: fi
                    454:
1.34      deraadt   455: # patch /etc/motd
                    456: if [ ! -f /etc/motd ]; then
                    457:        install -c -o root -g wheel -m 664 /dev/null /etc/motd
                    458: fi
1.364     guenther  459: if T=`mktemp /tmp/_motd.XXXXXXXXXX`; then
1.102     millert   460:        sysctl -n kern.version | sed 1q > $T
                    461:        echo "" >> $T
                    462:        sed '1,/^$/d' < /etc/motd >> $T
                    463:        cmp -s $T /etc/motd || cp $T /etc/motd
                    464:        rm -f $T
                    465: fi
1.34      deraadt   466:
1.298     ajacouto  467: if [ X"${accounting}" = X"YES" ]; then
                    468:        if [ ! -f /var/account/acct ]; then
                    469:                touch /var/account/acct
                    470:        fi
1.1       deraadt   471:        echo 'turning on accounting';   accton /var/account/acct
                    472: fi
                    473:
1.363     deraadt   474: if [ -f /sbin/ldconfig ]; then
1.115     deraadt   475:        echo 'creating runtime link editor directory cache.'
                    476:        if [ -d /usr/local/lib ]; then
1.183     todd      477:                shlib_dirs="/usr/local/lib $shlib_dirs"
1.115     deraadt   478:        fi
                    479:        if [ -d /usr/X11R6/lib ]; then
1.183     todd      480:                shlib_dirs="/usr/X11R6/lib $shlib_dirs"
1.115     deraadt   481:        fi
                    482:        ldconfig $shlib_dirs
1.231     millert   483: fi
                    484:
1.376     deraadt   485: echo 'preserving editor files.';       /usr/libexec/vi.recover
1.244     markus    486:
1.353     robert    487: echo -n 'starting network daemons:'
1.404     kettenis  488: start_daemon ldomd sshd snmpd ldpd ripd ospfd ospf6d bgpd ifstated
1.383     deraadt   489: start_daemon relayd dhcpd dhcrelay mrouted dvmrpd
1.127     itojun    490:
                    491: if ifconfig lo0 inet6 >/dev/null 2>&1; then
                    492:        fw=`sysctl -n net.inet6.ip6.forwarding`
1.266     millert   493:        if [ X"${fw}" = X"0" ]; then
1.353     robert    494:                start_daemon rtsold
1.127     itojun    495:        else
1.376     deraadt   496:                start_daemon route6d rtadvd
1.127     itojun    497:        fi
1.281     reyk      498: fi
                    499:
1.426     tedu      500: start_daemon hostapd lpd sendmail smtpd slowcgi nginx ftpd
1.407     ajacouto  501: start_daemon ftpproxy tftpd tftpproxy identd inetd rarpd bootparamd
1.425     ajacouto  502: start_daemon rbootd mopd spamd spamlogd sndiod
1.377     robert    503: echo '.'
1.335     deraadt   504:
                    505: # If rc.firstime exists, run it just once, and make sure it is deleted
                    506: if [ -f /etc/rc.firsttime ]; then
                    507:        mv /etc/rc.firsttime /etc/rc.firsttime.run
1.384     halex     508:        . /etc/rc.firsttime.run 2>&1 | tee /dev/tty |
1.392     halex     509:                mail -Es "`hostname` rc.firsttime output" root >/dev/null
1.335     deraadt   510: fi
                    511: rm -f /etc/rc.firsttime.run
1.352     ajacouto  512:
                    513: # Run rc.d(8) scripts from packages
1.380     ajacouto  514: if [ -n "${pkg_scripts}" ]; then
1.352     ajacouto  515:        echo -n 'starting package daemons:'
1.380     ajacouto  516:        for _r in $pkg_scripts; do
1.410     espie     517:                if [ -x /etc/rc.d/${_r} ]; then
                    518:                        start_daemon ${_r}
                    519:                else
                    520:                        echo -n " ${_r}(absent)"
                    521:                fi
1.352     ajacouto  522:        done
                    523:        echo '.'
                    524: fi
1.17      deraadt   525:
1.72      deraadt   526: [ -f /etc/rc.local ] && . /etc/rc.local
1.73      millert   527:
1.379     deraadt   528: ifconfig -g carp -carpdemote 128       # disable carp interlock
1.286     mcbride   529:
1.379     deraadt   530: mixerctl_conf
                    531: echo -n 'starting local daemons:'
1.386     deraadt   532: start_daemon apmd sensorsd hotplugd watchdogd cron wsmoused xdm
1.73      millert   533: echo '.'
1.1       deraadt   534:
                    535: date
                    536: exit 0