diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-09-29 06:46:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-09-29 06:46:05 +0000 |
commit | 7b9a1d2a1fa9cb66801e8863b7817877330990a6 (patch) | |
tree | 8747ed1dabfedbcd9ea60d2c187d3ea211f1d266 /etc/rc | |
parent | 5c296fda3d7c2db23c68cbb7a71e76fadea7640e (diff) |
do ldconfig before all ssh; because they need /usr/local/lib for searching
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.114 1999/09/28 07:20:01 deraadt Exp $ +# $OpenBSD: rc,v 1.115 1999/09/29 06:46:04 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. @@ -375,6 +375,17 @@ if [ -f /var/account/acct ]; then echo 'turning on accounting'; accton /var/account/acct fi +if [ -f /sbin/ldconfig ]; then + echo 'creating runtime link editor directory cache.' + if [ -d /usr/local/lib ]; then + shlib_dirs="$shlib_dirs /usr/local/lib" + fi + if [ -d /usr/X11R6/lib ]; then + shlib_dirs="$shlib_dirs /usr/X11R6/lib" + fi + ldconfig $shlib_dirs +fi + if [ ! -f /etc/ssh_host_key ]; then umask 022 echo -n "ssh-keygen: generating new host key... " @@ -478,32 +489,21 @@ if [ "X${mopd_flags}" != X"NO" -a -d /tftpboot/mop ]; then echo -n ' mopd'; mopd ${mopd_flags} fi -if [ X"${sshd}" == X"YES" -a -x /usr/sbin/sshd ]; then - echo -n ' sshd'; /usr/sbin/sshd - #echo -n ' sshd2022'; /usr/sbin/sshd -p 2022 -fi - if [ -x /usr/sbin/screenblank ]; then echo -n ' screenblank'; /usr/sbin/screenblank fi +if [ X"${sshd}" == X"YES" -a -x /usr/sbin/sshd ]; then + echo -n ' sshd'; /usr/sbin/sshd + #echo -n ' sshd(2022)'; /usr/sbin/sshd -p 2022 +fi + echo '.' if [ -f /sbin/kbd -a -f /etc/kbdtype ]; then kbd `cat /etc/kbdtype` fi -if [ -f /sbin/ldconfig ]; then - echo 'creating runtime link editor directory cache.' - if [ -d /usr/local/lib ]; then - shlib_dirs="$shlib_dirs /usr/local/lib" - fi - if [ -d /usr/X11R6/lib ]; then - shlib_dirs="$shlib_dirs /usr/X11R6/lib" - fi - ldconfig $shlib_dirs -fi - # Kerberos runs ONLY on the Kerberos servers # Kadmin is runs only on the main server if [ X${kerberos_server} = X"YES" ]; then |