aboutsummaryrefslogtreecommitdiff
path: root/config/init.hooks
diff options
context:
space:
mode:
Diffstat (limited to 'config/init.hooks')
-rwxr-xr-xconfig/init.hooks/devfs3
-rwxr-xr-xconfig/init.hooks/procfs3
-rwxr-xr-xconfig/init.hooks/shell6
-rwxr-xr-xconfig/init.hooks/start8
-rwxr-xr-xconfig/init.hooks/stop2
-rwxr-xr-xconfig/init.hooks/sysfs3
6 files changed, 25 insertions, 0 deletions
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