Home | History | Annotate | only in /src/sbin/devpubd/hooks
History log of /src/sbin/devpubd/hooks
RevisionDateAuthorComments
 1.3 05-Aug-2021  kre Expunge bogus (implementation defined / unspecified) uses of $@ in
scripts. $@ is unspecified except when used in a place where
field splitting can occur (which is never in an assignment),
X=$@ (with or without double quotes) is simply wrong.

Use $* instead of $@ in such places, or as here, simply change
the way things are done (very very slightly) and DTRT.
 1.2 15-Feb-2015  jmcneill At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.

Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
 1.1 29-Aug-2011  mrg branches: 1.1.20;
add the device publish daemon, written by jmcneill@.

listens on drvctl for new devices and invokes MAKEDEV for them.

missing:
- manual page
- rc.d script
- more testing

but it works well enough to make new disk nodes appear in /dev when
netbsd sees them and they're missing. you will need to make sure
you have a new /dev/MAKEDEV for this to work properly (postinstall
should handle this normally, of course.)


thanks jared!
 1.1.20.1 17-Feb-2015  martin Pull up following revision(s) (requested by jmcneill in ticket #525):
sbin/devpubd/hooks/01-makedev: revision 1.2
sbin/devpubd/devpubd-run-hooks.in: revision 1.3
sbin/devpubd/Makefile: revision 1.5
sbin/devpubd/hooks/02-wedgenames: revision 1.2
sbin/devpubd/devpubd.c: revision 1.3
sbin/devpubd/devpubd.c: revision 1.4
At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.
Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
let's make this compile again.
 1.8 08-Aug-2021  martin Fix obvious editor mishap in previous
 1.7 05-Aug-2021  kre Obliterate bogus $@ usage.

While here, fix some quoting, change some style, and attempt
to properly handle wedge names with embedded newlines, and those
that end with a '/' character (not particularly happy with the
solution to that last one, but it is better than it was).

Is there a reason that characters that need encoding in wedge names
(white space, and more) are encoded as %%XX (XX is the hex value of
the char - but 2 % chars? Why?). That remains unchanged, but as
the script already relied upon sh's $'...' quoting, I think we can rely
upon printf as well, so replace the old (very elegant, but slow) encoding
function with a much simpler one (does the same thing).
 1.6 09-Jan-2021  mlelstv Also replace calls to dirname.
 1.5 09-Jan-2021  mlelstv Remove need for awk/sed/readlink tools.
 1.4 15-Aug-2016  mlelstv Avoid error message when /dev/wedges doesn't exist yet.
 1.3 01-Mar-2015  mlelstv safely update existing wedge links
 1.2 15-Feb-2015  jmcneill At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.

Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
 1.1 11-Jan-2013  mlelstv branches: 1.1.2; 1.1.6; 1.1.12;
Provide a script for devpubd(8) that creates symlinks for each dk(4)
device under /dev/wedges so that you can access them by name.
 1.1.12.2 07-Mar-2015  snj Pull up following revision(s) (requested by mlelstv in ticket #561):
sbin/devpubd/hooks/02-wedgenames: revision 1.3
safely update existing wedge links
 1.1.12.1 17-Feb-2015  martin Pull up following revision(s) (requested by jmcneill in ticket #525):
sbin/devpubd/hooks/01-makedev: revision 1.2
sbin/devpubd/devpubd-run-hooks.in: revision 1.3
sbin/devpubd/Makefile: revision 1.5
sbin/devpubd/hooks/02-wedgenames: revision 1.2
sbin/devpubd/devpubd.c: revision 1.3
sbin/devpubd/devpubd.c: revision 1.4
At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.
Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
let's make this compile again.
 1.1.6.2 25-Feb-2013  tls resync with head
 1.1.6.1 11-Jan-2013  tls file 02-wedgenames was added on branch tls-maxphys on 2013-02-25 00:28:04 +0000
 1.1.2.2 23-Jan-2013  yamt sync with head
 1.1.2.1 11-Jan-2013  yamt file 02-wedgenames was added on branch yamt-pagecache on 2013-01-23 00:05:28 +0000

RSS XML Feed