[PATCH] - get src/sbin/devfs to build and run on kfreebsd{tested on 5.4}

Andraž "ruskie" Levstik ruskie at mages.ath.cx
Sun Apr 30 08:31:29 UTC 2006


Bellow are the patches that I made for devfs:
* devfs_build.diff - against the RELENG_5_4_0_RELEASE co of src/sbin/devfs .
* fetch.diff - against the fetch script form freebsd-utils/fetch

Now a little about what sbin/devfs is...
From: http://www.freebsd.org/cgi/man.cgi?query=devfs&apropos=0&sektion=8&manpath=FreeBSD+5.4-RELEASE&format=html

The devfs utility provides an interface to manipulate properties of
devfs(5) mounts.

Basicaly it provides persistent rules by using 2 configuration files:
/etc/devfs.conf - for on-boot-connected devices(i.e. ata hdds, cdroms, etc...)
/etc/devfs.rules - for hotplugable devices like usb flash drives and so on


This has been naging me since I started getting a Source Mage GNU/kFreeBSD
system going... how to get proper devfs persistency so I figured it out
and got it working...

I only tested this on kfreebsd 5.4 but it's possible it would work on
others... also note the manpage has some broken examples it seems so
don't start crying if it doesn't work by those examples.

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2004-01/1260.html

Here's a thread about someone who had the same probs as I did...

-- 
Andraž "ruskie" Levstik
Source Mage GNU/Linux Games grimoire guru
Geek/Hacker/Tinker

Hacker FAQ: http://www.plethora.net/%7eseebs/faqs/hacker.html

Key id = A7A9E461
Key fingerprint = 757E C16B F5B7 DC27 B003  CCED CF95 3A77 A7A9 E461
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetch.diff
Type: application/octet-stream
Size: 497 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/glibc-bsd-devel/attachments/20060430/48ff4079/fetch.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: devfs_build.diff
Type: application/octet-stream
Size: 843 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/glibc-bsd-devel/attachments/20060430/48ff4079/devfs_build.obj


More information about the Glibc-bsd-devel mailing list