devfs doesn't set access rights

[LoN]Kamikaze LoN_Kamikaze at gmx.de
Tue Dec 13 12:07:21 PST 2005


Here is a small patch for /etc/rc.d/devfs which makes it behave the way
I suggested in my last mail.

--- devfs.old   Tue Dec 13 20:58:52 2005
+++ devfs       Tue Dec 13 21:00:57 2005
@@ -43,8 +43,8 @@
                cd /dev
                while read action device parameter; do
                        case "${action}" in
-                       l*)     if [ -c ${device} -a ! -e ${parameter}
]; then
-                                       ln -fs ${device} ${parameter}
+                       l*)     if [ ! -e ${parameter} ]; then
+                                       ln -s ${device} ${parameter}
                                fi
                                ;;
                        o*)     if [ -c ${device} ]; then


More information about the freebsd-stable mailing list