f385d8f556
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!
22 lines
365 B
Bash
Executable File
22 lines
365 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: devpubd-run-hooks.in,v 1.1 2011/08/29 11:38:48 mrg Exp $
|
|
#
|
|
# devpubd run hooks
|
|
|
|
devpubd_event=$1
|
|
devpubd_device=$2
|
|
devpubd_hooks_base=@HOOKSDIR@
|
|
|
|
case $devpubd_event in
|
|
device-attach|device-detach)
|
|
for hook in ${devpubd_hooks_base}/*; do
|
|
if [ -x "${hook}" ]; then
|
|
"${hook}" ${devpubd_event} ${devpubd_device}
|
|
fi
|
|
done
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|