mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
15 lines
177 B
Bash
15 lines
177 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
kldstat -q -m g_${class} || g${class} load || exit 1
|
|
|
|
devwait()
|
|
{
|
|
while :; do
|
|
if [ -c /dev/${class}/${name} ]; then
|
|
return
|
|
fi
|
|
sleep 0.2
|
|
done
|
|
}
|