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

Annotation of src/etc/rc, Revision 1.428

1.428   ! robert      1: #      $OpenBSD: rc,v 1.427 2014/04/25 17:59:53 bluhm 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.428   ! robert    227: # need to get local functions from rc.subr
        !           228: FUNCS_ONLY=1 . /etc/rc.d/rc.subr
        !           229:
        !           230: # load rc.conf into scope
        !           231: _rc_parse_conf
1.343     robert    232:
1.266     millert   233: if [ X"$1" = X"shutdown" ]; then
1.416     rpe       234:        random_seed
                    235:
1.419     millert   236:        # If we are in secure level 0, assume single user mode.
                    237:        if [ `sysctl -n kern.securelevel` -ne 0 ]; then
1.421     schwarze  238:                pkg_scripts=${pkg_scripts%%*( )}
1.413     deraadt   239:                if [ -n "${pkg_scripts}" ]; then
                    240:                        echo -n 'stopping package daemons:'
                    241:                        while [ -n "${pkg_scripts}" ]; do
                    242:                                _r=${pkg_scripts##* }
                    243:                                pkg_scripts=${pkg_scripts%%*( )${_r}}
                    244:                                [ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop
                    245:                        done
                    246:                        echo '.'
                    247:                fi
                    248:
1.108     deraadt   249:                echo /etc/rc.shutdown in progress...
                    250:                . /etc/rc.shutdown
                    251:                echo /etc/rc.shutdown complete.
1.413     deraadt   252:        else
                    253:                echo single user: not running shutdown scripts
                    254:        fi
1.240     mcbride   255:
1.413     deraadt   256:        # bring carp interfaces down gracefully
                    257:        ifconfig | while read a b; do
                    258:                case $a in
                    259:                carp+([0-9]):) ifconfig ${a%:} down ;;
                    260:                esac
                    261:        done
1.246     mcbride   262:
1.413     deraadt   263:        if [ X"${powerdown}" = X"YES" ]; then
                    264:                exit 2
1.108     deraadt   265:        fi
                    266:        exit 0
1.1       deraadt   267: fi
1.98      jakob     268:
1.172     miod      269: swapctl -A -t blk
1.170     deraadt   270:
1.17      deraadt   271: if [ -e /fastboot ]; then
1.1       deraadt   272:        echo "Fast boot: skipping disk checks."
1.266     millert   273: elif [ X"$1" = X"autoboot" ]; then
1.1       deraadt   274:        echo "Automatic boot in progress: starting file system checks."
1.31      millert   275:        fsck -p
1.1       deraadt   276:        case $? in
                    277:        0)
                    278:                ;;
                    279:        2)
                    280:                exit 1
                    281:                ;;
                    282:        4)
                    283:                echo "Rebooting..."
                    284:                reboot
                    285:                echo "Reboot failed; help!"
                    286:                exit 1
                    287:                ;;
                    288:        8)
                    289:                echo "Automatic file system check failed; help!"
                    290:                exit 1
                    291:                ;;
                    292:        12)
                    293:                echo "Boot interrupted."
                    294:                exit 1
                    295:                ;;
                    296:        130)
                    297:                # interrupt before catcher installed
                    298:                exit 1
                    299:                ;;
                    300:        *)
                    301:                echo "Unknown error; help!"
                    302:                exit 1
                    303:                ;;
                    304:        esac
                    305: fi
                    306:
                    307: trap "echo 'Boot interrupted.'; exit 1" 3
                    308:
                    309: umount -a >/dev/null 2>&1
1.303     grunk     310: mount -a -t nonfs,vnd
1.57      niklas    311: mount -uw /            # root on nfs requires this, others aren't hurt
1.1       deraadt   312: rm -f /fastboot                # XXX (root now writeable)
1.177     deraadt   313:
1.255     henning   314: # set flags on ttys.  (do early, in case they use tty for SLIP in netstart)
1.1       deraadt   315: echo 'setting tty flags'
                    316: ttyflags -a
1.77      angelos   317:
1.252     mcbride   318: if [ -f /sbin/kbd -a -f /etc/kbdtype ]; then
                    319:        kbd `cat /etc/kbdtype`
                    320: fi
                    321:
1.279     deraadt   322: wsconsctl_conf
                    323:
1.266     millert   324: if [ X"${pf}" != X"NO" ]; then
1.211     mcbride   325:        RULES="block all"
1.228     henning   326:        RULES="$RULES\npass on lo0"
1.195     dhartmei  327:        RULES="$RULES\npass in proto tcp from any to any port 22 keep state"
1.208     camield   328:        RULES="$RULES\npass out proto { tcp, udp } from any to any port 53 keep state"
1.215     camield   329:        RULES="$RULES\npass out inet proto icmp all icmp-type echoreq keep state"
1.420     claudio   330:        RULES="$RULES\npass out inet proto udp from any port bootpc to any port bootps"
                    331:        RULES="$RULES\npass in inet proto udp from any port bootps to any port bootpc"
1.257     grange    332:        if ifconfig lo0 inet6 >/dev/null 2>&1; then
1.258     itojun    333:                RULES="$RULES\npass out inet6 proto icmp6 all icmp6-type neighbrsol"
                    334:                RULES="$RULES\npass in inet6 proto icmp6 all icmp6-type neighbradv"
1.257     grange    335:                RULES="$RULES\npass out inet6 proto icmp6 all icmp6-type routersol"
                    336:                RULES="$RULES\npass in inet6 proto icmp6 all icmp6-type routeradv"
1.420     claudio   337:                RULES="$RULES\npass out inet6 proto udp from any port dhcpv6-client to any port dhcpv6-server"
                    338:                RULES="$RULES\npass in inet6 proto udp from any port dhcpv6-server to any port dhcpv6-client"
1.257     grange    339:        fi
1.424     henning   340:        RULES="$RULES\npass in proto carp keep state (no-sync)"
                    341:        RULES="$RULES\npass out proto carp !received-on any keep state (no-sync)"
1.193     deraadt   342:        case `sysctl vfs.mounts.nfs 2>/dev/null` in
1.184     deraadt   343:        *[1-9]*)
                    344:                # don't kill NFS
1.324     henning   345:                RULES="set reassemble yes no-df\n$RULES"
1.306     deraadt   346:                RULES="$RULES\npass in proto { tcp, udp } from any port { 111, 2049 } to any"
1.424     henning   347:                RULES="$RULES\npass out proto { tcp, udp } from any to any port { 111, 2049 } !received-on any"
1.184     deraadt   348:                ;;
                    349:        esac
1.269     dhartmei  350:        echo $RULES | pfctl -f -
                    351:        pfctl -e
1.176     kjell     352: fi
1.318     djm       353:
                    354: # Fill net.inet.(tcp|udp).baddynamic lists from /etc/services
                    355: fill_baddynamic udp
                    356: fill_baddynamic tcp
1.176     kjell     357:
1.267     millert   358: sysctl_conf
1.260     jsg       359:
1.1       deraadt   360: # set hostname, turn on network
                    361: echo 'starting network'
1.289     henning   362: ifconfig -g carp carpdemote 128
1.264     deraadt   363: if [ -f /etc/resolv.conf.save ]; then
1.334     deraadt   364:        mv -f /etc/resolv.conf.save /etc/resolv.conf
1.264     deraadt   365:        touch /etc/resolv.conf
                    366: fi
1.1       deraadt   367: . /etc/netstart
1.412     deraadt   368: dmesg > /dev/random    # any write triggers an RC4 rekey
1.176     kjell     369:
1.266     millert   370: if [ X"${pf}" != X"NO" ]; then
1.176     kjell     371:        if [ -f ${pf_rules} ]; then
1.198     dhartmei  372:                pfctl -f ${pf_rules}
1.309     mpf       373:        fi
                    374:        # bring up pfsync after the working ruleset has been loaded
1.367     deraadt   375:        if [ -f /etc/hostname.pfsync0 ]; then
                    376:                . /etc/netstart pfsync0
                    377:        fi
1.176     kjell     378: fi
1.1       deraadt   379:
1.278     otto      380: mount -s /usr >/dev/null 2>&1
                    381: mount -s /var >/dev/null 2>&1
1.180     deraadt   382:
1.389     deraadt   383: random_seed
1.29      deraadt   384:
1.55      deraadt   385: # clean up left-over files
1.376     deraadt   386: rm -f /etc/nologin /var/spool/lock/LCK.* /var/spool/uucp/STST/*
1.247     henning   387: (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
1.196     beck      388: (cd /var/authpf && rm -rf -- *)
1.96      alex      389:
                    390: # save a copy of the boot messages
                    391: dmesg >/var/run/dmesg.boot
1.55      deraadt   392:
1.373     deraadt   393: make_keys
                    394:
1.379     deraadt   395: echo -n 'starting early daemons:'
1.423     sthen     396: start_daemon syslogd ldattach pflogd named nsd unbound ntpd
                    397: start_daemon isakmpd iked sasyncd ldapd npppd
1.353     robert    398: echo '.'
1.280     hshoexer  399:
                    400: if [ X"${ipsec}" != X"NO" ]; then
                    401:        if [ -f ${ipsec_rules} ]; then
                    402:                ipsecctl -f ${ipsec_rules}
                    403:        fi
1.40      provos    404: fi
1.1       deraadt   405:
1.379     deraadt   406: echo -n 'starting RPC daemons:'
1.399     dlg       407: start_daemon portmap ypldap
1.376     deraadt   408: if [ X"`domainname`" != X"" ]; then
1.385     deraadt   409:        start_daemon ypserv ypbind yppasswdd
1.376     deraadt   410: fi
1.399     dlg       411: start_daemon mountd nfsd lockd statd amd
1.1       deraadt   412: echo '.'
1.58      deraadt   413:
1.278     otto      414: mount -a
1.172     miod      415: swapctl -A -t noblk
1.1       deraadt   416:
                    417: # /var/crash should be a directory or a symbolic link
                    418: # to the crash directory if core dumps are to be saved.
                    419: if [ -d /var/crash ]; then
1.188     tholo     420:        savecore ${savecore_flags} /var/crash
1.90      art       421: fi
                    422:
1.266     millert   423: if [ X"${check_quotas}" = X"YES" ]; then
1.41      downsj    424:        echo -n 'checking quotas:'
                    425:        quotacheck -a
                    426:        echo ' done.'
                    427:        quotaon -a
                    428: fi
1.1       deraadt   429:
1.376     deraadt   430: kvm_mkdb                       # build kvm(3) databases
1.1       deraadt   431: dev_mkdb
1.101     deraadt   432: chmod 666 /dev/tty[pqrstuvwxyzPQRST]*
1.226     millert   433: chown root:wheel /dev/tty[pqrstuvwxyzPQRST]*
1.1       deraadt   434:
                    435: # check the password temp/lock file
1.17      deraadt   436: if [ -f /etc/ptmp ]; then
1.1       deraadt   437:        logger -s -p auth.err \
1.376     deraadt   438:            'password file may be incorrect -- /etc/ptmp exists'
1.32      deraadt   439: fi
                    440:
1.49      millert   441: echo clearing /tmp
                    442:
                    443: # prune quickly with one rm, then use find to clean up /tmp/[lq]*
                    444: # (not needed with mfs /tmp, but doesn't hurt there...)
1.339     sthen     445: (cd /tmp && rm -rf [a-km-pr-zA-Z]*)
                    446: (cd /tmp &&
1.49      millert   447:     find . ! -name . ! -name lost+found ! -name quota.user \
1.103     millert   448:        ! -name quota.group -execdir rm -rf -- {} \; -type d -prune)
1.373     deraadt   449:
                    450: setup_X_sockets
1.203     hugh      451:
1.72      deraadt   452: [ -f /etc/rc.securelevel ] && . /etc/rc.securelevel
1.266     millert   453: if [ X"${securelevel}" != X"" ]; then
1.33      millert   454:        echo -n 'setting kernel security level: '
1.234     jmc       455:        sysctl kern.securelevel=${securelevel}
1.1       deraadt   456: fi
                    457:
1.34      deraadt   458: # patch /etc/motd
                    459: if [ ! -f /etc/motd ]; then
                    460:        install -c -o root -g wheel -m 664 /dev/null /etc/motd
                    461: fi
1.364     guenther  462: if T=`mktemp /tmp/_motd.XXXXXXXXXX`; then
1.102     millert   463:        sysctl -n kern.version | sed 1q > $T
                    464:        echo "" >> $T
                    465:        sed '1,/^$/d' < /etc/motd >> $T
                    466:        cmp -s $T /etc/motd || cp $T /etc/motd
                    467:        rm -f $T
                    468: fi
1.34      deraadt   469:
1.298     ajacouto  470: if [ X"${accounting}" = X"YES" ]; then
                    471:        if [ ! -f /var/account/acct ]; then
                    472:                touch /var/account/acct
                    473:        fi
1.1       deraadt   474:        echo 'turning on accounting';   accton /var/account/acct
                    475: fi
                    476:
1.363     deraadt   477: if [ -f /sbin/ldconfig ]; then
1.115     deraadt   478:        echo 'creating runtime link editor directory cache.'
                    479:        if [ -d /usr/local/lib ]; then
1.183     todd      480:                shlib_dirs="/usr/local/lib $shlib_dirs"
1.115     deraadt   481:        fi
                    482:        if [ -d /usr/X11R6/lib ]; then
1.183     todd      483:                shlib_dirs="/usr/X11R6/lib $shlib_dirs"
1.115     deraadt   484:        fi
                    485:        ldconfig $shlib_dirs
1.231     millert   486: fi
                    487:
1.376     deraadt   488: echo 'preserving editor files.';       /usr/libexec/vi.recover
1.244     markus    489:
1.353     robert    490: echo -n 'starting network daemons:'
1.404     kettenis  491: start_daemon ldomd sshd snmpd ldpd ripd ospfd ospf6d bgpd ifstated
1.383     deraadt   492: start_daemon relayd dhcpd dhcrelay mrouted dvmrpd
1.127     itojun    493:
                    494: if ifconfig lo0 inet6 >/dev/null 2>&1; then
                    495:        fw=`sysctl -n net.inet6.ip6.forwarding`
1.266     millert   496:        if [ X"${fw}" = X"0" ]; then
1.353     robert    497:                start_daemon rtsold
1.127     itojun    498:        else
1.376     deraadt   499:                start_daemon route6d rtadvd
1.127     itojun    500:        fi
1.281     reyk      501: fi
                    502:
1.426     tedu      503: start_daemon hostapd lpd sendmail smtpd slowcgi nginx ftpd
1.407     ajacouto  504: start_daemon ftpproxy tftpd tftpproxy identd inetd rarpd bootparamd
1.425     ajacouto  505: start_daemon rbootd mopd spamd spamlogd sndiod
1.377     robert    506: echo '.'
1.335     deraadt   507:
                    508: # If rc.firstime exists, run it just once, and make sure it is deleted
                    509: if [ -f /etc/rc.firsttime ]; then
                    510:        mv /etc/rc.firsttime /etc/rc.firsttime.run
1.384     halex     511:        . /etc/rc.firsttime.run 2>&1 | tee /dev/tty |
1.392     halex     512:                mail -Es "`hostname` rc.firsttime output" root >/dev/null
1.335     deraadt   513: fi
                    514: rm -f /etc/rc.firsttime.run
1.352     ajacouto  515:
                    516: # Run rc.d(8) scripts from packages
1.380     ajacouto  517: if [ -n "${pkg_scripts}" ]; then
1.352     ajacouto  518:        echo -n 'starting package daemons:'
1.380     ajacouto  519:        for _r in $pkg_scripts; do
1.410     espie     520:                if [ -x /etc/rc.d/${_r} ]; then
                    521:                        start_daemon ${_r}
                    522:                else
                    523:                        echo -n " ${_r}(absent)"
                    524:                fi
1.352     ajacouto  525:        done
                    526:        echo '.'
                    527: fi
1.17      deraadt   528:
1.72      deraadt   529: [ -f /etc/rc.local ] && . /etc/rc.local
1.73      millert   530:
1.379     deraadt   531: ifconfig -g carp -carpdemote 128       # disable carp interlock
1.286     mcbride   532:
1.379     deraadt   533: mixerctl_conf
                    534: echo -n 'starting local daemons:'
1.386     deraadt   535: start_daemon apmd sensorsd hotplugd watchdogd cron wsmoused xdm
1.73      millert   536: echo '.'
1.1       deraadt   537:
                    538: date
                    539: exit 0