Wykres commitów

12 Commity (dd9d90223e7c4581bac36f458c073fd2ff8e43ae)

Autor SHA1 Wiadomość Data
Raf Czlonka ce97560e56 Remove double quotes, use curly braces where appropriate, and fix
the $BUSNAME device node path
2020-03-25 20:15:37 +00:00
Raf Czlonka 6fed5be5f3 $BUSNAME is a full device path, not just the device node name 2020-03-25 20:12:53 +00:00
Raf Czlonka 2c9a411b12 Remove superfluous double quotes
Device nodes are always comprised of alphanumeric characters so
there's no need to quote them. That being said, where appropriate,
use curly braces if the variable doesn't terminate the string -
technically, this isn't necessary as the character which follows
is a dot ('.'), which isn't a legal character in variable names so
there's no ambiguity but it makes the variable "stand out" at the
very least.
2020-03-25 20:05:04 +00:00
Raf Czlonka d24a5171c2 chown -> chmod 2020-03-25 20:03:41 +00:00
Raf Czlonka 6b1b071b77 Group commands and add conditionals 2020-03-25 03:02:56 +00:00
Raf Czlonka 0d0c03ab68 Change the owner as well as the group - missed earlier 2020-03-25 02:48:53 +00:00
Raf Czlonka 9687ff8aa0 Additionally to user:group, modes also need changing 2020-03-25 02:47:54 +00:00
Raf Czlonka 5a842d8dd6 Remove useless comments 2020-03-25 02:44:37 +00:00
Raf Czlonka 0b978ea742 Simplify - use test(1) and && instead of 'if ... then ... fi" 2020-03-25 02:25:50 +00:00
Raf Czlonka a129b7767d Incorporate hotplugd(8) patches from the OpenBSD port
https://cvsweb.openbsd.org/~checkout~/ports/graphics/sane-backends/patches/patch-tools_openbsd_attach?rev=1.3
https://cvsweb.openbsd.org/~checkout~/ports/graphics/sane-backends/patches/patch-tools_openbsd_detach?rev=1.2

While there, use "$()" instead of "``" for running commands in a
subshell (this is to match `attach` change commited earlier).

More whitespace fixes.
2020-03-25 02:07:05 +00:00
Raf Czlonka 61881417fa Provide a working hotplugd(8) attach example
Current example not only doesn't work but also hard-codes `ugen0` device name.

Fix whitespace while there.
2020-03-25 01:59:59 +00:00
Jochen Eisinger d620d407bb 2007-04-5 Jochen Eisinger <jochen@penguin-breeder.org>
* README.openbsd, tools/README, tools/openbsd/attach,
	  tools/openbsd/detach: add notes about device permissions on
	  OpenBSD and provide some example scripts for hotplugd(8).
2007-04-05 07:41:02 +00:00