Fix handling of undefined variables.
Add override for /etc/rc.local . Add hook to start syslogd if compiled-in and /etc/syslog.conf exists
This commit is contained in:
parent
c9627c73b3
commit
4323f7b024
@ -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} ; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user