summaryrefslogtreecommitdiff
path: root/distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files
diff options
context:
space:
mode:
Diffstat (limited to 'distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files')
-rw-r--r--distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files/hello-init.sh12
-rw-r--r--distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files/hello.c12
2 files changed, 24 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files/hello-init.sh b/distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files/hello-init.sh
new file mode 100644
index 0000000..1d40092
--- /dev/null
+++ b/distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files/hello-init.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+case $1 in
+start)
+ exec hello
+ ;;
+stop)
+ exit 0
+ ;;
+esac
+
+exit 1
diff --git a/distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files/hello.c b/distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files/hello.c
new file mode 100644
index 0000000..aea8503
--- /dev/null
+++ b/distribution/yocto-advanced/meta-schulung-extended/recipes-app/greeting/files/hello.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+/*
+ * A simple application to greet the world.
+ */
+
+int main(void)
+{
+ printf("Hello, world!\n");
+ return 0;
+}
+