svn commit: r202880 - head/etc/rc.d
Konstantin Belousov
kib at FreeBSD.org
Sat Jan 23 11:42:31 UTC 2010
Author: kib
Date: Sat Jan 23 11:42:31 2010
New Revision: 202880
URL: http://svn.freebsd.org/changeset/base/202880
Log:
Do not check for existence of symlink source for the link action. This
does not work for link in subdirectory, and sometimes it is useful to
create symlink in advance for dynamically created device node.
MFC after: 1 week
Modified:
head/etc/rc.d/devfs
Modified: head/etc/rc.d/devfs
==============================================================================
--- head/etc/rc.d/devfs Sat Jan 23 11:10:26 2010 (r202879)
+++ head/etc/rc.d/devfs Sat Jan 23 11:42:31 2010 (r202880)
@@ -44,7 +44,7 @@ read_devfs_conf()
while read action devicelist parameter; do
case "${action}" in
l*) for device in ${devicelist}; do
- if [ -c ${device} -a ! -e ${parameter} ]; then
+ if [ ! -e ${parameter} ]; then
ln -fs ${device} ${parameter}
fi
done
More information about the svn-src-all
mailing list