Add Kernel Install Menu
This commit is contained in:
parent
924cfa4057
commit
a430791530
6 changed files with 124 additions and 0 deletions
24
install/system/kernel/linux
Normal file
24
install/system/kernel/linux
Normal 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
|
24
install/system/kernel/linux-grsec
Normal file
24
install/system/kernel/linux-grsec
Normal 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
|
24
install/system/kernel/linux-lts
Normal file
24
install/system/kernel/linux-lts
Normal 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
|
24
install/system/kernel/linux-zen
Normal file
24
install/system/kernel/linux-zen
Normal 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
|
26
install/system/kernel/menu
Normal file
26
install/system/kernel/menu
Normal 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
|
|
@ -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;;
|
||||
|
|
Loading…
Reference in a new issue