From e6465566f6e10aa3dceecf6aff40a5dfcef981e2 Mon Sep 17 00:00:00 2001 From: luigi Date: Sun, 7 Apr 2002 20:41:09 +0000 Subject: Fix handling of undefined variables. Add override for /etc/rc.local . Add hook to start syslogd if compiled-in and /etc/syslog.conf exists --- release/picobsd/floppy.tree/etc/rc1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'release') diff --git a/release/picobsd/floppy.tree/etc/rc1 b/release/picobsd/floppy.tree/etc/rc1 index 2dd5232..f69445f 100644 --- a/release/picobsd/floppy.tree/etc/rc1 +++ b/release/picobsd/floppy.tree/etc/rc1 @@ -16,8 +16,9 @@ set_all_interfaces # Set ${ifconfig_${if}} for other interfaces. ### Now use some variables to override files in /etc ### ( IFS='' -[ -n ${host_conf} ] && echo ${host_conf} > /etc/host.conf -[ -n ${resolv_conf} ] && echo ${resolv_conf} > /etc/resolv.conf +[ -n "${host_conf}" ] && echo ${host_conf} > /etc/host.conf +[ -n "${resolv_conf}" ] && echo ${resolv_conf} > /etc/resolv.conf +[ -n "${rc_local}" ] && echo ${rc_local} > /etc/rc.local unset IFS ) @@ -43,6 +44,9 @@ mount -a -t nfs [ -n "$network_pass1_done" ] && network_pass2 [ -n "$network_pass2_done" ] && network_pass3 +[ -f /etc/syslog.conf -a -f /stand/syslogd ] && \ + { echo "Starting syslogd."; syslogd ${syslogd_flags} ; } + [ "${inetd_enable}" = "YES" -a -f /stand/inetd ] && \ { echo "Starting inetd."; inetd ${inetd_flags} ; } -- cgit v1.1