#!/bin/bash

# basalt-admin -- Revision: 1.2 -- by Basalt Linux
# (MIT License)

mainmenu () { while true
do
  clear
  echo "------------------------"
  echo " Basalt Admin Menu:"
  echo " 1.2 Xfce Edition"
  echo "------------------------"
  echo ""
  echo " (a) Add Myself to Sudo Group"
  echo " (b) Restore Sources & Update Repos"
  echo " (c) Rebuild Icon Cache Files"
  echo " (d) Install YT-DLP video downloader"
  echo " (e) Install newest kernel from backports"
  echo " (f) Upgrade to Debian Testing"
  echo ""
  echo " (x) Exit"
  echo
  read -p "Please enter your choice: " choice
  case $choice in
    a|A) bash /usr/local/bin/setsudo;;
    b|B) bash /usr/local/bin/optimize;;
    c|C) bash /usr/local/bin/iconcache;;
    d|D) bash /usr/local/bin/ytdlpinstall;;
    e|E) bash /usr/local/bin/bpkernel;;
    f|F) bash /usr/local/bin/gototesting;;
    x|X) exit;;
    *) echo "invalid answer, please try again";;
  esac
done
}

mainmenu
