From 4dfeca08c11dd9bf031ff8c2f12e76add27ab0f0 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 15 Sep 2020 21:20:41 +0300 Subject: update --- src/docs/Changing-Init-Program.html | 8 ++-- src/docs/Configuring-Init.html | 32 +-------------- src/docs/Contribution-Guidelines.html | 2 +- src/docs/Init-Hooks.html | 75 +++++++++++++++++++++++++++++++++++ src/docs/Init-System.html | 6 ++- src/docs/Package-Manager.html | 10 ++--- src/docs/index.html | 14 +++++++ 7 files changed, 105 insertions(+), 42 deletions(-) create mode 100644 src/docs/Init-Hooks.html (limited to 'src/docs') diff --git a/src/docs/Changing-Init-Program.html b/src/docs/Changing-Init-Program.html index 35e648f..5c32da6 100644 --- a/src/docs/Changing-Init-Program.html +++ b/src/docs/Changing-Init-Program.html @@ -15,7 +15,7 @@ Licensed under Gnu Free Documentation License. --> - + + + + + + +
+

+Next: , Previous: , Up: Init System  

+
+
+

4.2 Init Hooks

+ +

Init hooks are for custom personal commands that the user may want to add to +alter their boot. These can be used to load kernel modules, modify interfaces, +and lot more. Those hooks are added to the /etc/init directory with the +hook name as the suffix. For example, a boot script will be placed as +/etc/init/my-hook.boot. Currently, there are 4 hooks that the user can use. +

+
+
early-boot
+

Run after pseudo-filesystems are mounted. +

+
boot
+

Run before the boot stage is completed. +

+
pre.shutdown
+

Run first when shutting down. +

+
post.shutdown
+

Run just before the system is halted. +

+
+ + + + + + diff --git a/src/docs/Init-System.html b/src/docs/Init-System.html index 285dfab..feb4b72 100644 --- a/src/docs/Init-System.html +++ b/src/docs/Init-System.html @@ -53,9 +53,11 @@ shalt. This provides a portable method that doesn’t rely on non-POSIX exte programs.

- - + diff --git a/src/docs/Package-Manager.html b/src/docs/Package-Manager.html index b5d178e..8016a9a 100644 --- a/src/docs/Package-Manager.html +++ b/src/docs/Package-Manager.html @@ -54,15 +54,15 @@ a single file package manager, it revolves around the shell library cpt-li and many tools that wrap around it.

- - - - - diff --git a/src/docs/index.html b/src/docs/index.html index ca94f6a..d92b5c3 100644 --- a/src/docs/index.html +++ b/src/docs/index.html @@ -95,10 +95,24 @@ Overview of Package manager • Usage  Using Carbs Packaging Tools +• Environment Variables  Values that affect the operation of CPT + +• Hooks  Using hooks to customize the package manager operations + • Packaging System  More detail on creating packages • Rsync Repositories  Information on using or creating rsync repositories +Configuring Init  Ways to configure the init system + +• Init Hooks  Adding your personal commands to the init system + +• Changing Init Program  Replacing the default busybox init with something new +
-- cgit v1.2.3