From 1c71c273142ffe8573dada1a0e9623352364bc7f Mon Sep 17 00:00:00 2001 From: Trumeet Date: Sat, 14 Aug 2021 00:06:55 -0700 Subject: First Commit --- corekms_tree/board/corekms/rootfs_overlay/etc/fstab | 13 +++++++++++++ .../board/corekms/rootfs_overlay/etc/init.d/S99shell | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 corekms_tree/board/corekms/rootfs_overlay/etc/fstab create mode 100755 corekms_tree/board/corekms/rootfs_overlay/etc/init.d/S99shell (limited to 'corekms_tree/board') 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. +# +/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 -- cgit v1.2.3