diff --git a/CMakeLists.txt b/CMakeLists.txt index cfd7f85..2594d5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,7 @@ add_subdirectory(interface) add_subdirectory(sys) add_subdirectory(lib) add_subdirectory(services) +add_subdirectory(runlevel) add_subdirectory(programs) sysroot_add_program(NAME ${kernel_name} BIN_DIR /boot) diff --git a/runlevel/CMakeLists.txt b/runlevel/CMakeLists.txt new file mode 100644 index 0000000..f9545fd --- /dev/null +++ b/runlevel/CMakeLists.txt @@ -0,0 +1,12 @@ +file(GLOB runlevels *.runlevel) +foreach (f ${runlevels}) + get_filename_component(name ${f} NAME_WLE) + bsp_add_file( + ID runlevel-${name} + SRC_PATH ${f} + DEST_DIR /etc/herdd/runlevels) + sysroot_add_file( + ID runlevel-${name} + SRC_PATH ${f} + DEST_DIR /etc/herdd/runlevels) +endforeach (f) diff --git a/runlevel/minimal.runlevel b/runlevel/minimal.runlevel new file mode 100644 index 0000000..2975efd --- /dev/null +++ b/runlevel/minimal.runlevel @@ -0,0 +1,3 @@ +[Runlevel] +Description=Minimal +Requires=nsd diff --git a/runlevel/single-user.runlevel b/runlevel/single-user.runlevel new file mode 100644 index 0000000..e69de29