Add Kernel Install Menu

This commit is contained in:
MatMoul 2016-04-26 01:29:23 +02:00
parent 924cfa4057
commit a430791530
6 changed files with 124 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -2,6 +2,7 @@
. ./lib . ./lib
options=() options=()
options+=("Kernel" "")
options+=("Services" "") options+=("Services" "")
options+=("File System" "") options+=("File System" "")
options+=("Sound" "") options+=("Sound" "")
@ -17,6 +18,7 @@ fi
sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0 sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in case $sel in
'Kernel') menu install/system/kernel/menu;;
'Services') script install/system/services/menu;; 'Services') script install/system/services/menu;;
'File System') script install/system/filesystem;; 'File System') script install/system/filesystem;;
'Sound') script install/system/sound/sound;; 'Sound') script install/system/sound/sound;;