diff --git a/install/system/kernel/linux b/install/system/kernel/linux new file mode 100644 index 0000000..c68c126 --- /dev/null +++ b/install/system/kernel/linux @@ -0,0 +1,24 @@ +#!/bin/bash +. ./lib + +options=() +options+=("linux" "" on) +options+=("linux-headers" "" on) +options+=("linux-docs" "" off) + +sel=$(whiptail --backtitle "$apptitle" --title "Kernel Linux Install" --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" + +exit 0 diff --git a/install/system/kernel/linux-grsec b/install/system/kernel/linux-grsec new file mode 100644 index 0000000..d286168 --- /dev/null +++ b/install/system/kernel/linux-grsec @@ -0,0 +1,24 @@ +#!/bin/bash +. ./lib + +options=() +options+=("linux-grsec" "" on) +options+=("linux-grsec-headers" "" on) +options+=("linux-grsec-docs" "" off) + +sel=$(whiptail --backtitle "$apptitle" --title "Kernel Linux GRSEC Install" --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" + +exit 0 diff --git a/install/system/kernel/linux-lts b/install/system/kernel/linux-lts new file mode 100644 index 0000000..194beb0 --- /dev/null +++ b/install/system/kernel/linux-lts @@ -0,0 +1,24 @@ +#!/bin/bash +. ./lib + +options=() +options+=("linux-lts" "" on) +options+=("linux-lts-headers" "" on) +options+=("linux-lts-docs" "" off) + +sel=$(whiptail --backtitle "$apptitle" --title "Kernel Linux LTS Install" --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" + +exit 0 diff --git a/install/system/kernel/linux-zen b/install/system/kernel/linux-zen new file mode 100644 index 0000000..ad96bee --- /dev/null +++ b/install/system/kernel/linux-zen @@ -0,0 +1,24 @@ +#!/bin/bash +. ./lib + +options=() +options+=("linux-zen" "" on) +options+=("linux-zen-headers" "" on) +options+=("linux-zen-docs" "" off) + +sel=$(whiptail --backtitle "$apptitle" --title "Kernel Linux ZEN Install" --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" + +exit 0 diff --git a/install/system/kernel/menu b/install/system/kernel/menu new file mode 100644 index 0000000..e4b5fd9 --- /dev/null +++ b/install/system/kernel/menu @@ -0,0 +1,26 @@ +#!/bin/bash +. ./lib + +options=() +options+=("linux" "Default") +options+=("linux-lts" "Long Time Support") +options+=("linux-zen" "") +options+=("linux-grsec" "") + +defaultitem="" +sel=$(whiptail --backtitle "$apptitle" --title "Kernel Install :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \ + "${options[@]}" \ + 3>&1 1>&2 2>&3) +if [ ! "$?" = "0" ]; then + exit 1 +fi +sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0 + +case $sel in + 'linux') script install/system/kernel/linux;; + 'linux-lts') script install/system/kernel/linux-lts;; + 'linux-zen') script install/system/kernel/linux-zen;; + 'linux-grsec') script install/system/kernel/linux-grsec;; +esac + +exit 0 diff --git a/install/system/menu b/install/system/menu index 5c312c4..4c74882 100644 --- a/install/system/menu +++ b/install/system/menu @@ -2,6 +2,7 @@ . ./lib options=() +options+=("Kernel" "") options+=("Services" "") options+=("File System" "") options+=("Sound" "") @@ -17,6 +18,7 @@ fi sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0 case $sel in + 'Kernel') menu install/system/kernel/menu;; 'Services') script install/system/services/menu;; 'File System') script install/system/filesystem;; 'Sound') script install/system/sound/sound;;