In the /etc/rc startup script a soft link is created from /var/run/log to

/dev/log like this: if [ ! -h /dev/log ];
The man page for test(1) says that the -h switch is depracated and that
users should NOT rely on it being available. It suggest the -L switch instead.
They both do the same thing: check for the existence of the symbolic link.

PR:		26596
Submitted by:	mikem <mike_makonnen@yahoo.com>
This commit is contained in:
Poul-Henning Kamp 2001-04-15 13:44:05 +00:00
parent 4c7da4f92c
commit 7b8467e22f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75525

2
etc/rc
View File

@ -445,7 +445,7 @@ case ${syslogd_enable} in
[Yy][Ee][Ss])
# Transitional symlink (for the next couple of years :) until all
# binaries have had a chance to move towards /var/run/log.
if [ ! -h /dev/log ]; then
if [ ! -L /dev/log ]; then
# might complain for r/o root f/s
ln -sf /var/run/log /dev/log
fi