aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChristos.K <freedomrfox@gmail.com>2017-06-09 02:17:13 +0300
committerChristos.K <freedomrfox@gmail.com>2017-06-09 02:17:13 +0300
commit2500ef3a5b23e1b8871e300b8eb652532236e5d4 (patch)
tree2268512141a66d64974327ec874f91d6adcd69bf /bin
parentIncluded module-setup.sh file (diff)
downloadGSE-2500ef3a5b23e1b8871e300b8eb652532236e5d4.tar.gz
GSE-2500ef3a5b23e1b8871e300b8eb652532236e5d4.tar.bz2
GSE-2500ef3a5b23e1b8871e300b8eb652532236e5d4.zip
First option include
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gse55
1 files changed, 50 insertions, 5 deletions
diff --git a/bin/gse b/bin/gse
index 9334ba4..2554cf0 100755
--- a/bin/gse
+++ b/bin/gse
@@ -9,9 +9,9 @@
# #
## ##
-LC_COLLATE=C
+#LC_COLLATE=C
#LC_ALL="en_US.UTF-8"
-LC_CTYPE="en_US.UTF-8"
+#LC_CTYPE="en_US.UTF-8"
# DEFINITION OF CWORKDIR AND IT'S SUBDIRECTORIES
export CWORKDIR="$(dirname ${PWD})"
@@ -23,9 +23,13 @@ export CREL="$(grep ^NAME /etc/*release | awk -F '=' '{ print $2 }')"
# PATH DEFINITION FOR THE SCRIPTS WHICH WILL AID THE PROCESS
export PATH=${PATH}:${CWORKDIR}/scripts/functions
+source "${CWORKDIR}/scripts/functions/sinit_functions" || { echo -e "\e[32mMissing scripts\e[0m" && exit 1; }
+source "${CWORKDIR}/scripts/functions/catalyst_functions" || { echo -e "\e[32mMissing scripts\e[0m" && exit 1; }
+
STAT_VAR=''
-set -o
+#set -o
+
# CHECK IF BASH IS THE DEFAULT {CURRENT} SHELL, ISSUE A WARNING OTHERIWSE
shl_f() {
@@ -462,7 +466,7 @@ about_f() {
# MAIN LOOP FUNCTION
mainlp_f() {
-BACKTO="MM"
+BACKTO="$1"
while true; do
case "${BACKTO:-MM}" in
MM)
@@ -500,4 +504,45 @@ done
}
# STARTS MAIN LOOP FUNCTION
-mainlp_f; unset BACKTO; exit 0
+post_par() {
+if [[ -z "$@" ]]; then
+mainlp_f "MM"
+else
+ case "$1" in
+ --fetch-new|-fn)
+ fetch_new_f "$@"
+ ;;
+ --start-new|-sn)
+ source "${CWORKDIR}/scripts/sinit" "seed" "catalyst" "s1" "s2" "s3"
+ ;;
+ --help|-h)
+ echo "Help"
+ ;;
+ --keep|-k)
+ echo "Keep"
+ ;;
+ --health-check|-hc)
+ echo "Health check"
+ ;;
+ --replace-new|-rpn)
+ echo "Replace new"
+ ;;
+ --no-kernel|-nk)
+ echo "No kernel"
+ ;;
+ --no-initramfs|-ni)
+ echo "No initramfs"
+ ;;
+ --build-controller|-bc)
+ echo "Build controller"
+ ;;
+ --build-system|-bs)
+ echo "Build system"
+ ;;
+ --build-minimal|-bm)
+ echo "Build minimal"
+ ;;
+ esac
+fi
+}
+post_par "$@"