#!/bin/sh SCRIPTDIR=/usr/src/rtai/scripts if [ $UID = 0 ]; then UPROG='./user_process' else UPROG='sudo ./user_process' fi cat <<-EOF This test shows is an example of using a fifo to communicate between kernel and user space. Type to install modules EOF read junk ${SCRIPTDIR}/rt_modprobe rt_process.o echo "Now start the application" echo "To stop the application type Ctrl-C" echo "Type to continue" read junk exit 1 $UPROG echo " " echo "Type to remove modules" read junk ${SCRIPTDIR}/rt_rmmod rt_process.o