services: add a test service to test bshell
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
rosetta_add_misc_service(
|
||||||
|
NAME bshell-test
|
||||||
|
CFG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/bshell-test.service)
|
||||||
|
|
||||||
|
rosetta_service_add_file(
|
||||||
|
NAME bshell-test
|
||||||
|
SRC_FILE ${CMAKE_CURRENT_SOURCE_DIR}/test.bshell
|
||||||
|
DEST_DIR /sbin)
|
||||||
|
|
||||||
|
sysroot_add_service(
|
||||||
|
NAME bshell-test
|
||||||
|
BIN_DIR /usr/bin
|
||||||
|
SVC_DIR /etc/herdd/services)
|
||||||
|
bsp_add_service(
|
||||||
|
NAME bshell-test
|
||||||
|
BIN_DIR /usr/bin
|
||||||
|
SVC_DIR /etc/herdd/services)
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# vim ft=toml
|
||||||
|
[unit]
|
||||||
|
description = "BShell Test Script"
|
||||||
|
|
||||||
|
[service]
|
||||||
|
exec = [
|
||||||
|
"/usr/bin/bshell",
|
||||||
|
"/sbin/test.bshell"
|
||||||
|
]
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
$x = "Jonh"
|
||||||
|
echo "Hello, $x!"
|
||||||
@@ -5,5 +5,6 @@ description = "Single-User"
|
|||||||
[target]
|
[target]
|
||||||
requires = [
|
requires = [
|
||||||
"nsd.service",
|
"nsd.service",
|
||||||
"devmd.service"
|
"devmd.service",
|
||||||
|
"bshell-test.service"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user