--- /dev/null
+#!/bin/bash
+
+#
+# Start the pwm generator with real time priority.
+#
+
+PATH=$PATH:/usr/local/bin
+
+# Initialize the shared memory segment.
+
+lightcontrol -r 0 -g 0 -b 0 -w 0
+
+chrt -f 50 pwm &
+
+
+# Create a sequence of light colors to test if the generator is working
+# The sequence is red - green - blue - white.
+
+
+lightcontrol -r 100 -g 0 -b 0 -w 0
+sleep 2
+lightcontrol -r 0 -g 100 -b 0 -w 0
+sleep 2
+lightcontrol -r 0 -g 0 -b 100 -w 0
+sleep 2
+lightcontrol -r 0 -g 0 -b 0 -w 100
+sleep 2
+lightcontrol -r 0 -g 0 -b 0 -w 0