[BACK]Return to rc.local CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc

Annotation of src/etc/rc.local, Revision 1.13

1.1       cgd         1: #
                      2: # site-specific startup actions, daemons
                      3: #
1.4       mycroft     4: #      From: @(#)rc.local      5.4 (Berkeley) 12/14/90
1.13    ! cgd         5: #      $Id: rc.local,v 1.12 1994/08/24 07:11:36 mycroft Exp $
1.1       cgd         6: #
                      7:
1.9       deraadt     8: if [ ! -f /etc/motd ]; then
1.10      cgd         9:        install -c -o root -g wheel -m 664 /dev/null /etc/motd
1.9       deraadt    10: fi
1.1       cgd        11: T=/tmp/_motd
                     12: rm -f $T
1.12      mycroft    13: sysctl -n kern.version | sed 1q > $T
1.1       cgd        14: echo "" >> $T
                     15: sed '1,/^$/d' < /etc/motd >> $T
1.12      mycroft    16: cmp -s $T /etc/motd || cp $T /etc/motd
1.1       cgd        17: rm -f $T
                     18:
1.13    ! cgd        19: if [ -f /sbin/ldconfig ]; then
        !            20:        echo 'creating runtime link editor directory cache.'
        !            21:        ldconfig
        !            22: fi
        !            23:
1.1       cgd        24: echo -n 'starting local daemons:'
                     25:
                     26: # Kerberos runs ONLY on the Kerberos server machine
                     27: if [ X${kerberos_server} = X"YES" ]; then
                     28:        echo -n ' kerberos';    kerberos >> /var/log/kerberos.log &
                     29: fi
                     30:
                     31: echo '.'

CVSweb <webmaster@jp.NetBSD.org>