#!/bin/sh # # $NetBSD: devpubd-run-hooks.in,v 1.4 2021/08/05 12:45:33 kre Exp $ # # devpubd run hooks devpubd_event=$1 shift 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} "$@" fi done ;; *) ;; esac exit 0 |