diff options
author | Judd Vinet <judd@archlinux.org> | 2005-06-05 20:30:12 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-06-05 20:30:12 +0000 |
commit | 47ca58301f0bf0680baf59465202c4209b1ac112 (patch) | |
tree | 0eed2f8a1d181e89de64831a8a2376c1a3362566 /rc.sysinit | |
parent | 0ad54a5ba99d95c9b5dfe02f567e1f349de6a720 (diff) |
rc.sysinit now sets the NIS domain name, if configured. Also fixed a /var/locks typo
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -110,7 +110,7 @@ stat_done stat_busy "Removing Leftover Files" /bin/rm -f /etc/nologin &>/dev/null /bin/rm -f /etc/shutdownpid &>/dev/null -/bin/rm -f /var/locks/* &>/dev/null +/bin/rm -f /var/lock/* &>/dev/null /bin/rm -f /var/run/*.pid &>/dev/null /bin/rm -f /var/run/daemons/* &>/dev/null /bin/rm -rf /tmp/* /tmp/.* &>/dev/null @@ -127,6 +127,12 @@ if [ "$HOSTNAME" != "" ]; then status "Setting Hostname: $HOSTNAME" /bin/hostname $HOSTNAME fi +# Set the NIS domain name, if necessary +[ -f /etc/conf.d/nisdomainname ] && . /etc/conf.d/nisdomainname +if [ "$NISDOMAINNAME" != "" ]; then + status "Setting NIS Domain Name: $NISDOMAINNAME" /bin/nisdomainname $NISDOMAINNAME +fi + status "Updating Module Dependencies" /sbin/depmod -A if [ -f /var/run/random-seed ]; then |