From 970cc8e41166f00ae8c79fdd65194cffa5ccd5b0 Mon Sep 17 00:00:00 2001 From: lw-everestlinux Date: Tue, 25 Oct 2022 14:02:50 -0400 Subject: [PATCH] add libesv --- README | 34 ++++++++++++++++++++++++++++++++++ README.md | 3 --- src/ecrypt/README | 4 ++-- src/esv/lib/libesv | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 README delete mode 100644 README.md create mode 100644 src/esv/lib/libesv diff --git a/README b/README new file mode 100644 index 0000000..7beba58 --- /dev/null +++ b/README @@ -0,0 +1,34 @@ ++---------------------------+ +| [ โš™ ] Everest Tools [ โš™ ] | ++---------------------------+ + +Tools for Everest Linux that were too small for their own repositories + ++---------------------------+ +| [ โค“ ] Installation [ โค“ ] | ++---------------------------+ + +Obtain the source tree: + + $ git clone https://git.everestlinux.org/EverestLinux/everest-tools + +Install all of the tools + + $ mv install.conf.def install.conf + # ./INSTALL.sh + +OR Install only certain tools + + $ cd src/(tool-name) + $ mv install.conf.def install.conf + # ./INSTALL.sh + ++---------------------------------+ +| [ ๐Ÿ“ ] Included Programs [ ๐Ÿ“ ] | ++---------------------------------+ + + esv - Everest Service Manager + โˆŸ libesv - backend for esv + gpc - Glacier Package Checker + ecrypt - Everest Encryption Tools + diff --git a/README.md b/README.md deleted file mode 100644 index 86304a2..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# everest-tools - -Everest ISO tools and scripts \ No newline at end of file diff --git a/src/ecrypt/README b/src/ecrypt/README index e389f89..89183bf 100644 --- a/src/ecrypt/README +++ b/src/ecrypt/README @@ -27,6 +27,6 @@ INSTALL.sh as root +-------------------+ - ecrypt-genkey + Create a randomized 64 character key - ecrypt-checkkey - - + Check a file against an existing key diff --git a/src/esv/lib/libesv b/src/esv/lib/libesv new file mode 100644 index 0000000..a9f0777 --- /dev/null +++ b/src/esv/lib/libesv @@ -0,0 +1,41 @@ +#!/bin/sh + +autostart() { + while true + do + /etc/init.d/autostart/*/RUN + done +} + +case $1 in + autostart) + autostart + if [ "$?" != "0" ]; then + exit 1 + fi + ;; + -h|--help) + printf "libesv - backend functions for esv\n" + printf "note: this script should not be called directly by the user\n" + printf "\n" + printf "/usr/lib/libesv {autostart} - autostart all services in /etc/init.d/autostart\n" + printf "note: 'autostart' should ONLY be called by esv at boot time\n" + printf "\n" + printf "/usr/lib/libesv {-h|--help} - show this message and exit\n" + printf "/usr/lib/libesv {-v|--version} - show the version and exit\n" + printf "\n" + printf "this file is part of esv - everest service manager\n" + exit 0 + ;; + -v|--version) + printf "libesv v1.0.0\n" + exit 0 + ;; + -*) + printf "error in subprocess /usr/lib/libesv - no such option '$1'\n" + exit 1 + ;; + *) + printf "error in subprocess /usr/lib/libesv - no such option '$1'\n" + exit 1 +esac