diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-14 17:09:59 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-14 17:09:59 +0100 |
| commit | 7a98e998c5cda484611d19854649ab8535f503d4 (patch) | |
| tree | 43f7dae6921ced5ee9001f1d31c662351678a718 /config | |
| parent | c0178363472e162a7cb21e381c512979130dfdb0 (diff) | |
add simplet init system
Diffstat (limited to 'config')
| -rw-r--r-- | config/env | 1 | ||||
| -rwxr-xr-x | config/init.hooks/devfs | 3 | ||||
| -rwxr-xr-x | config/init.hooks/procfs | 3 | ||||
| -rwxr-xr-x | config/init.hooks/shell | 6 | ||||
| -rwxr-xr-x | config/init.hooks/start | 8 | ||||
| -rwxr-xr-x | config/init.hooks/stop | 2 | ||||
| -rwxr-xr-x | config/init.hooks/sysfs | 3 |
7 files changed, 26 insertions, 0 deletions
@@ -1,2 +1,3 @@ PATH=/system/core:/system/utils:/system/scripts MANUALS=/system/manual/ +HOME=/ diff --git a/config/init.hooks/devfs b/config/init.hooks/devfs new file mode 100755 index 0000000..77ec1cf --- /dev/null +++ b/config/init.hooks/devfs @@ -0,0 +1,3 @@ +#!/system/core/smash + +mount devtmpfs none /system/devices diff --git a/config/init.hooks/procfs b/config/init.hooks/procfs new file mode 100755 index 0000000..2376461 --- /dev/null +++ b/config/init.hooks/procfs @@ -0,0 +1,3 @@ +#!/system/core/smash + +mount proc none /system/process diff --git a/config/init.hooks/shell b/config/init.hooks/shell new file mode 100755 index 0000000..be975f4 --- /dev/null +++ b/config/init.hooks/shell @@ -0,0 +1,6 @@ +#!/system/core/smash +cd $[HOME] + +clear +read /system/config/banner | mdv +smash diff --git a/config/init.hooks/start b/config/init.hooks/start new file mode 100755 index 0000000..49ed1af --- /dev/null +++ b/config/init.hooks/start @@ -0,0 +1,8 @@ +#!/system/core/smash + +cd /system/config/init.hooks/ + +./devfs +./sysfs +./procfs +./shell diff --git a/config/init.hooks/stop b/config/init.hooks/stop new file mode 100755 index 0000000..159fdcb --- /dev/null +++ b/config/init.hooks/stop @@ -0,0 +1,2 @@ +#!/system/core/smash +poweroff diff --git a/config/init.hooks/sysfs b/config/init.hooks/sysfs new file mode 100755 index 0000000..f54d57c --- /dev/null +++ b/config/init.hooks/sysfs @@ -0,0 +1,3 @@ +#!/system/core/smash + +mount sysfs none /system/info |