summaryrefslogtreecommitdiff
path: root/recipes/sgalib/files/sga-init
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/sgalib/files/sga-init')
-rw-r--r--recipes/sgalib/files/sga-init23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes/sgalib/files/sga-init b/recipes/sgalib/files/sga-init
new file mode 100644
index 0000000000..3a7d4031af
--- /dev/null
+++ b/recipes/sgalib/files/sga-init
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ test -f /dev/SGA/ || mknod /dev/SGA c 254 0
+ ;;
+
+ stop)
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ *)
+ echo "usage: $0 { start | stop | restart }"
+ ;;
+esac
+
+exit 0
+