aboutsummaryrefslogtreecommitdiff
path: root/corekms_tree/board
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-08-14 00:06:55 -0700
committerTrumeet <yuuta@yuuta.moe>2021-08-14 00:06:55 -0700
commit1c71c273142ffe8573dada1a0e9623352364bc7f (patch)
treeedf6a5aa0eefcffcde347e2fe59b7cb6c7910ccc /corekms_tree/board
downloadcorekms-master.tar
corekms-master.tar.gz
corekms-master.tar.bz2
corekms-master.zip
First CommitHEADmaster
Diffstat (limited to 'corekms_tree/board')
-rw-r--r--corekms_tree/board/corekms/rootfs_overlay/etc/fstab13
-rwxr-xr-xcorekms_tree/board/corekms/rootfs_overlay/etc/init.d/S99shell18
2 files changed, 31 insertions, 0 deletions
diff --git a/corekms_tree/board/corekms/rootfs_overlay/etc/fstab b/corekms_tree/board/corekms/rootfs_overlay/etc/fstab
new file mode 100644
index 0000000..117813f
--- /dev/null
+++ b/corekms_tree/board/corekms/rootfs_overlay/etc/fstab
@@ -0,0 +1,13 @@
+# The default configuration uses `defaults` in options for devpts and sysfs,
+# which causes problems mounting.
+# Simply removing the options, dump and pass does not work, since BusyBox's mount(1)
+# seems to be ignoring these lines.
+# rw is working well.
+# <file system> <mount pt> <type> <options> <dump> <pass>
+/dev/root / ext2 rw,noauto 0 1
+proc /proc proc defaults 0 0
+devpts /dev/pts devpts rw 0 0
+tmpfs /dev/shm tmpfs mode=0777 0 0
+tmpfs /tmp tmpfs mode=1777 0 0
+tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
+sysfs /sys sysfs rw 0 0
diff --git a/corekms_tree/board/corekms/rootfs_overlay/etc/init.d/S99shell b/corekms_tree/board/corekms/rootfs_overlay/etc/init.d/S99shell
new file mode 100755
index 0000000..c569c1f
--- /dev/null
+++ b/corekms_tree/board/corekms/rootfs_overlay/etc/init.d/S99shell
@@ -0,0 +1,18 @@
+#!/bin/sh
+# The system state page.
+while true
+do
+ clear
+ printf "Welcome to CoreKMS!\t"
+ uptime
+ free -h
+ if pgrep "vlmcsd" > /dev/null ; then
+ echo "VLMCSD is running."
+ else
+ echo "VLMCSD is not running."
+ fi
+ echo "IP Addresses:"
+ ip a
+ echo "Press Enter to refresh."
+ read
+done