diff options
author | Christos.K <freedomrfox@gmail.com> | 2017-06-09 02:24:02 +0300 |
---|---|---|
committer | Christos.K <freedomrfox@gmail.com> | 2017-06-09 02:24:02 +0300 |
commit | ab403e48879ce350c53eb5f25b6e9964d6848865 (patch) | |
tree | df6a1183b50c501728fb31a5491330e39c26dc56 /scripts | |
parent | Included functions (diff) | |
download | GSE-ab403e48879ce350c53eb5f25b6e9964d6848865.tar.gz GSE-ab403e48879ce350c53eb5f25b6e9964d6848865.tar.bz2 GSE-ab403e48879ce350c53eb5f25b6e9964d6848865.zip |
Removed old files
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/chroot_scripts/chprint_inf | 28 | ||||
-rwxr-xr-x | scripts/chroot_scripts/chsinit_mon | 24 | ||||
-rwxr-xr-x | scripts/chroot_scripts/chsinprog | 12 | ||||
-rwxr-xr-x[-rw-r--r--] | scripts/functions/catalyst_functions | 0 | ||||
-rwxr-xr-x | scripts/functions/lcreq | 61 | ||||
-rwxr-xr-x | scripts/functions/men_opt | 176 | ||||
-rwxr-xr-x | scripts/functions/print_inf | 28 | ||||
-rwxr-xr-x | scripts/functions/sinit_mon | 29 |
8 files changed, 0 insertions, 358 deletions
diff --git a/scripts/chroot_scripts/chprint_inf b/scripts/chroot_scripts/chprint_inf deleted file mode 100755 index da9ca78..0000000 --- a/scripts/chroot_scripts/chprint_inf +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# Error messages -case $1 in - 1) - echo -e "[\e[32m*\e[0m] \e[34mDone\e[0m";; - 2) - echo -e "[\e[31m*\e[0m] \e[31mFAILED\e[0m";; - 3) - clear - echo "If this message is printed while using the Maim Menu" - echo "That means essential files are altered or something bad is happening." - echo - echo "Please run a health-check from the ~Main Menu~ and a Version check first." - echo "If you see this again after the health/version check, please submit a bug report" - echo "and stop using the program, or data loss may occur." - echo - echo "Exiting..." - sleep 2 - exit 1;; - 4) - echo -e "[\e[31m*\e[0m] [\e[31mERROR\e[0m: Wrong parameters" - exit 1;; - 5) - echo -e "[\e[31m*\e[0m] Failed getting version";; - 6) - echo -e "[\e[31m*\e[0m] FATAL";; -esac diff --git a/scripts/chroot_scripts/chsinit_mon b/scripts/chroot_scripts/chsinit_mon deleted file mode 100755 index 0409d62..0000000 --- a/scripts/chroot_scripts/chsinit_mon +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -# PROCESS FLOW TWEAKER. DO NOT EDIT THIS. -case "$1" in - 1) - sed -i -e 's/WEBRSYNC=0/WEBRSYNC=1/g' "${CHDIR}/chsinprog";; - 2) - sed -i -e 's/BOOTSTRAP=0/BOOTSTRAP=1/g' "${CHDIR}/chsinprog";; - 3) - sed -i -e 's/REBUILD=0/REBUILD=1/g' "${CHDIR}/chsinprog";; - 4) - sed -i -e 's/CONFIGURE=0/CONFIGURE=1/g' "${CHDIR}/chsinprog";; - 5) - sed -i -e 's/INSTALL=0/INSTALL=1/g' "${CHDIR}/chsinprog";; - rn) - sed -i -e 's/RUNLEVEL=0/RUNLEVEL=1/g' "${CHDIR}/chsinprog";; - kern) - sed -i -e 's/KERNEL=0/KERNEL=1/g' "${CHDIR}/chsinprog";; - initramfs) - sed -i -e 's/INITRAMFS=0/INITRAMFS=1/g' "${CHDIR}/chsinprog";; - portage) - sed -i -e 's/PORTAGE=0/PORTAGE=1/g' "${CHDIR}/chsinprog";; - dn) ;; -esac diff --git a/scripts/chroot_scripts/chsinprog b/scripts/chroot_scripts/chsinprog deleted file mode 100755 index a408528..0000000 --- a/scripts/chroot_scripts/chsinprog +++ /dev/null @@ -1,12 +0,0 @@ -# Don't edit this file manually. It controls the flow of the chroot stage -WEBRSYNC=0 -PORTAGE=0 -BOOTSTRAP=1 -REBUILD=0 -CONFIGURE=0 -INSTALL=0 -RUNLEVEL=0 -KERNEL=0 -INITRAMFS=0 -CLEAN=0 -MANUAL=0 diff --git a/scripts/functions/catalyst_functions b/scripts/functions/catalyst_functions index f75fde7..f75fde7 100644..100755 --- a/scripts/functions/catalyst_functions +++ b/scripts/functions/catalyst_functions diff --git a/scripts/functions/lcreq b/scripts/functions/lcreq deleted file mode 100755 index a5f4fe8..0000000 --- a/scripts/functions/lcreq +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash - -# THIS SCRIPT IS SOURCED AT THE BEGINING FOR CHECKING THE BUILDER'S RUNTIME DEPENDENCIES -CRDPENDS='' -amiroot() { - if [[ "$1" == "0" ]] - then - return 0 - else - return 1 - fi -} -case "$1" in -1) -[[ $(command -v eix) ]] \ -|| { echo -e "[\e[33m*\e[0m] \e[35mPlease install eix to proceed!\e[0m" \ -&& { amiroot $UID && echo -e "[\e[32m*\e[0m] Root privileges found" \ -&& emerge -aq eix && echo -e "[\e[33m*\e[0m] \e[35mUpdating database\e[0m" \ -&& eix-sync -a >/dev/null 2>&1; } \ -|| { echo -e "[\e[31m*\e[0m] Could not get root privileges" \ -&& echo "Please resolve this issue and start again" && exit 1; }; } - -mapfile -t lreq < <(cat "${CLOCALLG}/loc_req" | sed '/^#/ d' | sed '/^\s*$/d') - -for i in "${lreq[@]}"; do -sleep 0.1 -if eix --installed "$i" >/dev/null 2>&1; then -echo -e "[\e[32m*\e[0m] Searching for \e[32m$i\e[0m" -else -echo -e "[\e[31m*\e[0m] Searching for $i" -echo -e "[\e[33m*\e[0m] Attempting to resolve the missing dependency" -amiroot $UID && echo -e "[\e[32m*\e[0m] Root privileges found" \ -&& emerge -aq "$i" \ -|| { echo -e "[\e[31m*\e[0m] Could not get root privileges" \ -&& echo "Please resolve this issue and start again" && exit 1; } -fi -done;; -2) -mapfile -t lreq < <(cat "${CLOCALLG}/nogloc_req" | sed '/^#/ d' | sed '/^\s*$/d') - -for i in "${lreq[@]}"; do -sleep 0.1 -if command -v "$i" >/dev/null 2>&1; then -echo -e "[\e[32m*\e[0m] Searching for \e[32m$i\e[0m" -else -echo -e "[\e[31m*\e[0m] Searching for $i" -CRDPENDS=1 -fi -done -[[ "${CRDPENDS}" == 1 ]] && while true; do - echo -e "\e[33mIf you think some of those dependencies are name missmatch or not important\e[0m" - echo -e "\e[33mYou can choose to continue at your own ristk\e[0m" - read -rp "Continue? Y/N: " ANS - case "${ANS}" in - [yY]) - break;; - [nN]) - echo "Exiting..." && sleep 1 && exit 1;; - esac -done -esac
\ No newline at end of file diff --git a/scripts/functions/men_opt b/scripts/functions/men_opt deleted file mode 100755 index 428e92d..0000000 --- a/scripts/functions/men_opt +++ /dev/null @@ -1,176 +0,0 @@ -#!/bin/bash - -# MAIN MENU OF /bin/gse - case $1 in - 1 ) - echo -e "###################### \e[94m~~Main Menu~~\e[39m #####################" - if [[ "${CREL}" == Gentoo ]]; then - echo -e "## \e[35m${CREL}\e[0m \e[33msystem\e[0m ##" - else - echo -e "## \e[35mGentoo\e[0m \e[31msystem not found!\e[0m ##" - fi - echo "## ##" - echo -e "## [ \e[32mI\e[39m ] \e[33mSystem menu\e[0m ##" - echo -e "## [ \e[32mII\e[39m ] \e[33mBuild the controller image\e[0m ##" - echo -e "## [ \e[32mIII\e[39m] \e[33mDocumentations\e[0m ##" - echo -e "## [ \e[32mIV\e[39m ] \e[33mAbout the project\e[0m ##" - echo -e "## [ \e[32mV\e[39m ] \e[33mI shouldn't be here, please let me leave!\e[0m ##" - echo "## ##" - echo -e "## [ \e[32mT\e[39m ] \e[32mTerminal\e[0m ##" - echo "## ##" - echo "#############################################################" - ;; - 2 ) - echo -e "################### \e[94m~~Documentations~~\e[39m ####################" - if [[ "${CREL}" == Gentoo ]]; then - echo -e "## \e[35m${CREL}\e[0m \e[33msystem\e[0m ##" - else - echo -e "## \e[35mGentoo\e[0m \e[31msystem not found!\e[0m ##" - fi - echo "## ##" - echo -e "## [ \e[32mI\e[39m ] \e[33mIntroduction to GSE Directory\e[0m ##" - echo -e "## [ \e[32mII\e[39m ] \e[33mThe Controller\e[0m ##" - echo -e "## [ \e[32mIII\e[39m ] \e[33mThe Config.d Directory\e[0m ##" - echo -e "## [ \e[32mIV\e[39m ] \e[33mThe dist.d Directory\e[0m ##" - echo -e "## [ \e[32mV\e[39m ] \e[33mMain Menu\e[0m ##" - echo "## ##" - echo "##############################################################" - ;; - 3 ) - echo -e "####################### \e[94m~~About~~\e[39m ########################" - if [[ "${CREL}" == Gentoo ]]; then - echo -e "## \e[35m${CREL}\e[0m \e[33msystem\e[0m ##" - else - echo -e "## \e[35mGentoo\e[0m \e[31msystem not found!\e[0m ##" - fi - echo "## ##" - echo -e "## [ \e[32mI\e[39m ] \e[33mAbout the project\e[0m ##" - echo -e "## [ \e[32mII\e[39m ] \e[33mLinux, Gentoo and the birth of an Idea\e[0m ##" - echo -e "## [ \e[32mIII\e[39m] \e[33mOpen Source To The End and Beyond\e[0m ##" - echo -e "## [ \e[32mIV\e[39m ] \e[33mMain Menu\e[0m ##" - echo "## ##" - echo "#############################################################" - ;; - 5) - echo -e "###################### \e[94m~~Builder~~\e[39m #####################" - if [[ "${CREL}" == Gentoo ]]; then - echo -e "## \e[35m${CREL}\e[0m \e[33msystem\e[0m ##" - else - echo -e "## \e[35mGentoo\e[0m \e[31msystem not found!\e[0m ##" - fi - echo "## ##" - echo -e "## [ \e[32mI\e[39m ] \e[33mBuilt a System\e[0m ##" - echo -e "## [ \e[32mII\e[39m ] \e[33mConfigure built variables\e[0m ##" - echo -e "## [ \e[32mIII\e[39m] \e[33mSelect default system for distribution\e[0m ##" - echo -e "## [ \e[32mIV\e[39m ] \e[33mCreate a stage4 tarball\e[0m ##" - echo -e "## [ \e[32mV\e[39m ] \e[33mReturn back\e[0m ##" - echo "## ##" - echo -e "## [ \e[32mT\e[39m ] \e[32mTerminal\e[0m ##" - echo "## ##" - echo "###########################################################" - ;; - 6) - echo -e "################# \e[94m~~System Menu~~\e[39m ################" - if [[ "${CREL}" == Gentoo ]]; then - echo -e "## \e[35m${CREL}\e[0m \e[33msystem\e[0m ##" - else - echo -e "## \e[35mGentoo\e[0m \e[31msystem not found!\e[0m ##" - fi - echo "## ##" - echo -e "## [ \e[32mI\e[39m ] \e[33mPortage\e[0m ##" - echo -e "## [ \e[32mII\e[39m ] \e[33mCatalyst\e[0m ##" - echo -e "## [ \e[32mIII\e[39m] \e[33mLocal\e[0m ##" - echo -e "## [ \e[32mIV\e[39m ] \e[33mPrecompiled\e[0m ##" - echo -e "## [ \e[32mV\e[39m ] \e[33mReturn back\e[0m ##" - echo "## ##" - echo -e "## [ \e[32mT\e[39m ] \e[32mTerminal\e[0m ##" - echo "## ##" - echo "#####################################################" - ;; - 7) - echo -e "###################### \e[94m~~Portage~~\e[39m #####################" - if [[ "${CREL}" == Gentoo ]]; then - echo -e "## \e[35m${CREL}\e[0m \e[33msystem\e[0m ##" - else - echo -e "## \e[35mGentoo\e[0m \e[31msystem not found!\e[0m ##" - fi - echo "## ##" - echo -e "## [ \e[32mI\e[39m ] \e[33mGuided/Automatic make.conf\e[0m ##" - echo -e "## [ \e[32mII\e[39m ] \e[33mManually edit make.conf (Reset)\e[0m ##" - echo -e "## [ \e[32mIII\e[39m] \e[33mFeatures & ccashe\e[0m ##" - echo -e "## [ \e[32mIV\e[39m ] \e[33mEdit distcc\e[0m ##" - echo -e "## [ \e[32mV\e[39m ] \e[33mEdit packages.use\e[0m ##" - echo -e "## [ \e[32mVI\e[39m ] \e[33mReview packages.use\e[0m ##" - echo -e "## [ \e[32mVII\e[39m] \e[33mRestore packages.use\e[0m ##" - echo -e "## [\e[32mVIII\e[39m] \e[33mReturn back\e[0m ##" - echo "## ##" - echo -e "## [ \e[32mT\e[39m ] \e[32mTerminal\e[0m ##" - echo "## ##" - echo "###########################################################" - ;; - 8) - echo -e "################## \e[94m~~Configurations~~\e[39m ##################" - if [[ "${CREL}" == Gentoo ]]; then - echo -e "## \e[35m${CREL}\e[0m \e[33msystem\e[0m ##" - else - echo -e "## \e[35mGentoo\e[0m \e[31msystem not found!\e[0m ##" - fi - echo "## ##" - echo -e "## [ \e[32mI\e[39m ] \e[33mConfigure fstab/drives\e[0m ##" - echo -e "## [ \e[32mII\e[39m ] \e[33mManually edit fstab\e[0m ##" - echo -e "## [ \e[32mIII\e[39m ] \e[33mManually edit drive names\e[0m ##" - echo -e "## [ \e[32mIV\e[39m ] \e[33mEdit Hostname\e[0m ##" - echo -e "## [ \e[32mV\e[39m ] \e[33mEdit /etc/conf.d/net\e[0m ##" - echo -e "## [ \e[32mVI\e[39m ] \e[33mEdit Locales\e[0m ##" - echo -e "## [ \e[32mVII\e[39m ] \e[33mEdit Consolefont\e[0m ##" - echo -e "## [ \e[32mVIII\e[39m ] \e[33mEdit sshd\e[0m ##" - echo -e "## [ \e[32mIX\e[39m ] \e[33mEdit sshkey\e[0m ##" - echo -e "## [ \e[32mX\e[39m ] \e[33mSymlink, bind, overlay and tmpfs\e[0m ##" - echo -e "## [ \e[32mXI\e[39m ] \e[33mAdd Scripts\e[0m ##" - echo -e "## [ \e[32mXII\e[39m ] \e[33mInstall Packages\e[0m ##" - echo -e "## [ \e[32mXIII\e[39m ] \e[33mEdit Default Grub\e[0m ##" - echo -e "## [ \e[32mXIV\e[39m ] \e[33mEdit runlevels***\e[0m ##" - echo -e "## [ \e[32mXV\e[39m ] \e[33mInject files\e[0m ##" - echo -e "## [ \e[32mXVI\e[39m ] \e[33mReturn back\e[0m ##" - echo "## ##" - echo -e "## [ \e[32mT\e[39m ] \e[32mTerminal\e[0m ##" - echo "## ##" - echo "###########################################################" - ;; - 9) - echo -e "################## \e[94m~~Select Default~~\e[39m ##################" - if [[ "${CREL}" == Gentoo ]]; then - echo -e "## \e[35m${CREL}\e[0m \e[33msystem\e[0m ##" - else - echo -e "## \e[35mGentoo\e[0m \e[31msystem not found!\e[0m ##" - fi - echo "## ##" - echo -e "## [ \e[32mI\e[39m ] \e[33mList systems\e[0m ##" - echo -e "## [ \e[32mII\e[39m ] \e[33mEdit default\e[0m ##" - echo -e "## [ \e[32mIII\e[39m] \e[33mReturn back\e[0m ##" - echo "## ##" - echo -e "## [ \e[32mT\e[39m ] \e[32mTerminal\e[0m ##" - echo "## ##" - echo "###########################################################" - ;; - 10) - echo -e "################### \e[94m~~Catalyst~~\e[39m #################" - if [[ "${CREL}" == Gentoo ]]; then - echo -e "## \e[35m${CREL}\e[0m \e[33msystem\e[0m ##" - else - echo -e "## \e[35mGentoo\e[0m \e[31msystem not found!\e[0m ##" - fi - echo "## ##" - echo -e "## [ \e[32mI\e[39m ] \e[33mConfigure catalyst.conf\e[0m ##" - echo -e "## [ \e[32mII\e[39m ] \e[33mConfigure catalystrc\e[0m ##" - echo -e "## [ \e[32mIII\e[39m] \e[33mConfigure stage1\e[0m ##" - echo -e "## [ \e[32mIV\e[39m ] \e[33mConfigure stage2\e[0m ##" - echo -e "## [ \e[32mV\e[39m ] \e[33mConfigure stage3\e[0m ##" - echo -e "## [ \e[32mVI\e[39m ] \e[35mInitiate Build\e[0m ##" - echo -e "## [ \e[32mVII\e[39m] \e[33mReturn\e[0m ##" - echo "## ##" - echo -e "## [ \e[32mT\e[39m ] \e[32mTerminal\e[0m ##" - echo "## ##" - echo "#####################################################" - ;; - esac
\ No newline at end of file diff --git a/scripts/functions/print_inf b/scripts/functions/print_inf deleted file mode 100755 index 008f07e..0000000 --- a/scripts/functions/print_inf +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# ERROR MESSAGES DURING ALL BUT CHROOT STAGE -case $1 in - 1) - echo -e "[\e[32m*\e[0m] \e[34mDone\e[0m";; - 2) - echo -e "[\e[31m*\e[0m] \e[31mFAILED\e[0m";; - 3) - clear - echo "If this message is printed while using the Maim Menu" - echo "That means essential files are altered or something bad is happening." - echo - echo "Please run a health-check from the ~Main Menu~ and a Version check first." - echo "If you see this again after the health/version check, please submit a bug report" - echo "and stop using the program, or data loss may occur." - echo - echo "Exiting..." - sleep 2 - exit 1;; - 4) - echo -e "[\e[31m*\e[0m] [\e[31mERROR\e[0m: Wrong parameters" - exit 1;; - 5) - echo -e "[\e[31m*\e[0m] Failed getting version";; - 6) - echo -e "[\e[31m*\e[0m] FATAL";; -esac diff --git a/scripts/functions/sinit_mon b/scripts/functions/sinit_mon deleted file mode 100755 index 0b3f74e..0000000 --- a/scripts/functions/sinit_mon +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# PROCESS FLOW TWEAKER DURING ALL BUT CHROOT STAGE. DO NOT EDIT THIS FILE! -case "$1" in - 1) - sed -i -e 's/KEY=0/KEY=1/g' "${CLOCALLG}/sinprog" - sed -i -e 's/NEW=0/NEW=1/g' "${CLOCALLG}/sinprog";; - 2) - sed -i -e 's/WGETST3=0/WGETST3=1/g' "${CLOCALLG}/sinprog";; - 3) - sed -i -e 's/VERIFICATION=0/VERIFICATION=1/g' "${CLOCALLG}/sinprog";; - 4) - sed -i -e 's/EXTRACTION=0/EXTRACTION=1/g' "${CLOCALLG}/sinprog" - sed -i -e 's/PARTA=0/PARTA=1/g' "${CLOCALLG}/sinprog";; - 5) - sed -i -e 's/1/0/g' "${CLOCALLG}/sinprog" - sed -i -e 's/NEW=1/NEW=0/g' "${CLOCALLG}/sinprog" - sed -i -e 's/PARTA=1/PARTA=0/g' "${CLOCALLG}/sinprog";; - 6) - sed -i -e 's/PARTB=0/PARTA=1/g' "${CLOCALLG}/sinprog";; - catalyst) - sed -i -e 's/CATALYST=0/CATALYST=1/g' "${CLOCALLG}/sinprog";; - precomp) - sed -i -e 's/PRECOMP=0/PRECOMP=1/g' "${CLOCALLG}/sinprog";; - localrb) - sed -i -e 's/LOCALRB=0/LOCALRB=1/g' "${CLOCALLG}/sinprog";; - dn) - ;; -esac |