#!/bin/sh if [ $UID != 0 ]; then SUDO="sudo "; else SUDO=""; fi echo echo "*** Simple RTAI SHM demo (kernel) ***" echo "Press to load modules:" read junk cd ..; ./ldmod; cd - echo echo "Now start the realtime process , to end it." read junk sync if (`rtai-config --linux-version | grep -q 2.6`); then insmod ./shm_rt.ko; else insmod ./shm.o; fi ./display echo echo "Done. Press to remove the modules." read junk ./rem