Commit Graph

23 Commits

Author SHA1 Message Date
martin bcb7e68e0a Fix obvious editor mishap in previous 2021-08-08 10:48:35 +00:00
kre e1efa60439 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).
2021-08-05 12:52:47 +00:00
kre a9596d155d 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.
2021-08-05 12:45:33 +00:00
christos 3151045394 fix proplib deprecation 2021-06-21 03:04:27 +00:00
mlelstv 3b6e7d0308 Also replace calls to dirname. 2021-01-09 16:25:19 +00:00
mlelstv 1f9fa21d0b Remove need for awk/sed/readlink tools. 2021-01-09 14:00:05 +00:00
wiz 14df4e9b76 New sentence, new line. Bump date for previous. 2020-02-24 11:59:33 +00:00
mlelstv c445faa062 Add one-shot mode. 2020-02-24 11:45:30 +00:00
kamil 5f94716bd4 Stop including unused header <sys/poll.h> 2020-02-06 19:20:21 +00:00
sevan 9eaf2a2b2a Document the version devpubd first appeared.
Bump date.
2016-09-11 01:38:00 +00:00
mlelstv 43aac176e6 Avoid error message when /dev/wedges doesn't exist yet. 2016-08-15 12:54:40 +00:00
mlelstv 4b8999e0dd safely update existing wedge links 2015-03-01 14:21:17 +00:00
christos 3d6eb1fc0f let's make this compile again. 2015-02-15 21:46:49 +00:00
jmcneill 481b9e731c 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.
2015-02-15 15:56:30 +00:00
dholland cccb31c834 These pass WARNS=5, so don't set WARNS=4 2013-08-11 06:04:38 +00:00
wiz 0ce5dbc6e9 Bump date for previous. 2013-01-12 10:19:01 +00:00
mlelstv a11271cda5 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.
2013-01-11 23:49:23 +00:00
reed 3a3bcb7dc5 Add some details about the hook scripts. 2012-11-22 17:16:30 +00:00
jmcneill 104b886e37 exit 0 on success 2011-12-04 13:01:54 +00:00
joerg bd80b77cd9 Use __dead. Save a pointer. 2011-09-16 15:42:56 +00:00
riz b146b6f7a7 Build and install the skeleton manpage for devpubd - it's better than
nothing.
2011-09-06 21:30:12 +00:00
wiz 5febc69036 Add minimal devpubd man page, not hooked into the build yet.
XXX: someone should write drvctl(4)
2011-08-29 14:21:50 +00:00
mrg f385d8f556 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!
2011-08-29 11:38:48 +00:00