diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-25 04:01:13 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-25 04:01:13 +0000 |
commit | fb5a1b53bfb010ce0261eaebcd040786cee4b15a (patch) | |
tree | 5293353ec07421e463bf9de45ce0bb48ecdd800e | |
parent | 731c5014d4b12c3b2f16960ed3894a19cdfe138a (diff) | |
download | FreeBSD-src-fb5a1b53bfb010ce0261eaebcd040786cee4b15a.zip FreeBSD-src-fb5a1b53bfb010ce0261eaebcd040786cee4b15a.tar.gz |
Probe for the first available ggate(4) device
-rwxr-xr-x | sbin/geom/class/tests/gate/1_test.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/geom/class/tests/gate/1_test.sh b/sbin/geom/class/tests/gate/1_test.sh index 5689044..fb6fd62 100755 --- a/sbin/geom/class/tests/gate/1_test.sh +++ b/sbin/geom/class/tests/gate/1_test.sh @@ -4,7 +4,10 @@ . `dirname $0`/conf.sh base=`basename $0` -us=45 +us=0 +while [ -c /dev/ggate${us} ]; do + : $(( us += 1 )) +done conf=`mktemp $base.XXXXXX` || exit 1 pidfile=ggated.pid port=33080 |