aboutsummaryrefslogtreecommitdiff
path: root/corekms_tree/board/corekms
diff options
context:
space:
mode:
Diffstat (limited to 'corekms_tree/board/corekms')
-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