phunix/minix/tests/ddekit/ddekittest.sh
David van Moolenbroek c58da9fbc3 Rename MINIX service(8) to minix-service(8)
IMPORTANT: this change has a docs/UPDATING entry!

This rename is unfortunately necessary because NetBSD has decided to
create its own service(8) utility, and we will want to import theirs
as well.  The two can obviously not coexist.

Also move ours from /bin to /sbin, as it is a superuser-only utility.

Change-Id: Ic6e46ffb3a84b4747d2fdcb0d74e62dbea065039
2017-02-22 17:16:21 +00:00

20 lines
509 B
Bash
Executable File

#!/bin/sh
# Supporting routines for ddekit Do not run directly.
# usage: run_ddekittest
# runs the ddekit driver on the given device with the given parameters
run_ddekittest () {
if [ ! -x ddekittest_driver ]; then echo "compile ddekittest first!" >&2; exit 1; fi
minix-service up `pwd`/ddekittest_driver -config system.conf \
-script /etc/rs.single -label ddekittest
}
#
# We do not have much here just calling the source run_ddekittest here
#
run_ddekittest
sleep 10
minix-service down ddekittest