ExnixOS-BY-MR/eznixOS12Xdev-calamares/eznixOS12Xdev/scripts/ezadmin

152 lines
3.1 KiB
Bash
Executable File

#!/bin/bash
# ezadmin -- Revision: 12X -- by eznix (https://sourceforge.net/projects/eznixos/)
# (GNU/General Public License version 3.0)
# ---------------------------------------
# Define Functions:
# ---------------------------------------
setsudo () {
clear
echo " "
bash /usr/local/bin/setsudo
clear
echo " "
echo "User Added To Sudo Group (logout & login)"
sleep 3
clear
}
optimize () {
clear
echo " "
bash /usr/local/bin/optimize
clear
echo " "
echo "Optimized sources.list & Updated Repos"
echo " "
sleep 3
clear
}
debtesting () {
clear
echo " "
bash /usr/local/bin/gototesting
clear
echo " "
echo "Upgrade to testing, reboot now"
echo " "
sleep 3
clear
}
iconcache () {
clear
echo " "
bash /usr/local/bin/iconcache
clear
echo " "
echo "Icon Cache Files Rebuilt (logout & login)"
sleep 3
clear
}
ffinstall () {
clear
echo " "
bash /usr/local/bin/ffinstall
clear
echo " "
echo "Firefox Current Installed"
sleep 3
clear
}
ytdlpinst () {
clear
echo " "
bash /usr/local/bin/ytdlpinstall
clear
echo " "
echo "YT-DLP video downloader Installed"
sleep 3
clear
}
bpkernel () {
clear
echo " "
bash /usr/local/bin/bpkernel
clear
echo " "
echo "Newest Kernel From Backports Installed (Reboot Required)"
sleep 3
clear
}
# ---------------------------
# Main Menu
# ---------------------------
mainmenu () { while true
do
clear
echo "----------------------"
echo " EZ Admin Menu:"
echo " 12X Xfce Edition"
echo "----------------------"
echo ""
echo " (a) Add Myself to Sudo Group "
echo " (Logout & Login to take effect) "
echo " (b) Optimize Sources & Update Repos "
echo " (c) Rebuild Icon Cache Files "
echo " (Logout & Login to take effect) "
echo " (d) Install or upgrade Firefox Latest "
echo " (e) Install YT-DLP video downloader "
echo " (f) Install newest kernel from backports "
echo " (Reboot Required) "
echo " (g) Upgrade to Debian Testing "
echo " (Reboot Required) "
echo ""
echo " (x) Exit "
echo
read -p "Please enter your choice: " choice
case $choice in
a|A) setsudo;;
b|B) optimize;;
c|C) iconcache;;
d|D) ffinstall;;
e|E) ytdlpinst;;
f|F) bpkernel;;
g|G) debtesting;;
x|X) exit;;
*) echo "invalid answer, please try again";;
esac
done
}
# Begin main program:
mainmenu
done
# Disclaimer:
#
# THIS SOFTWARE IS PROVIDED BY EZNIX “AS IS” AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL EZNIX BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.