From a41cbf75b0b9765149aa4cf4ec1529cdc79da3ad Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 13 Aug 2016 01:34:31 +0200 Subject: [PATCH] Rename basic to generic for console install --- install/console/generic | 38 ++++++++++++++++++++++++++++++++++++++ install/console/menu | 4 ++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 install/console/generic diff --git a/install/console/generic b/install/console/generic new file mode 100644 index 0000000..c0ee6a6 --- /dev/null +++ b/install/console/generic @@ -0,0 +1,38 @@ +#!/bin/bash +. ./lib + +options=() +options+=("bash-completion" "Best completion in bash" on) +options+=("lsof" "ls open file" on) +options+=("dmidecode" "Hardware infos" on) +options+=("nmon" "System monitor" off) +options+=("mc" "Dual pane file explorer" off) +options+=("powertop" "power mon and management" off) +options+=("dialog" "Dialog boxes for script" off) +options+=("gpm" "Console mouse support" off) + +sel=$(whiptail --backtitle "$apptitle" --title "Console Generic packages :" --checklist "" --cancel-button "Back" 0 0 0 \ + "${options[@]}" \ + 3>&1 1>&2 2>&3) +if [ ! "$?" = "0" ]; then + exit 1 +fi + +for itm in $sel; do + case $itm in + *) pkg="$pkg $(echo $itm | sed 's/"//g')";; + esac +done + +instpkg "$pkg" "$aurpkg" + +for itm in $sel; do + case $itm in + '"gpm"') + svcstart gpm + svcenable gpm + ;; + esac +done + +exit 0 diff --git a/install/console/menu b/install/console/menu index 465a4df..3806fc0 100644 --- a/install/console/menu +++ b/install/console/menu @@ -2,7 +2,7 @@ . ./lib options=() -options+=("Basic" "") +options+=("Generic" "") options+=("Compression Tools" "") options+=("Network Tools" "") options+=("Webbrowser" "") @@ -18,7 +18,7 @@ fi sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0 case $sel in - "Basic") script install/console/basic;; + "Generic") script install/console/generic;; "Compression Tools") script install/console/compression-tools;; "Network Tools") script install/console/network-tools;; "Webbrowser") script install/console/webbrowser;;