diff options
author | luigi <luigi@FreeBSD.org> | 2002-04-07 20:41:09 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2002-04-07 20:41:09 +0000 |
commit | e6465566f6e10aa3dceecf6aff40a5dfcef981e2 (patch) | |
tree | 4f0a053983d6d63f0cf891dcb58bfc5cf029cd8f /release/picobsd | |
parent | fe1cc3843bd689bbac18f1b0ff05e2c87f7dfac6 (diff) | |
download | FreeBSD-src-e6465566f6e10aa3dceecf6aff40a5dfcef981e2.zip FreeBSD-src-e6465566f6e10aa3dceecf6aff40a5dfcef981e2.tar.gz |
Fix handling of undefined variables.
Add override for /etc/rc.local .
Add hook to start syslogd if compiled-in and /etc/syslog.conf exists
Diffstat (limited to 'release/picobsd')
-rw-r--r-- | release/picobsd/floppy.tree/etc/rc1 | 8 |
1 files changed, 6 insertions, 2 deletions
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} ; } |