Packages maintenance
This commit is contained in:
parent
7472cf0f46
commit
69c1590069
3 changed files with 26 additions and 26 deletions
|
@ -1,24 +0,0 @@
|
|||
#!/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-hardened
Normal file
24
install/system/kernel/linux-hardened
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
. ./lib
|
||||
|
||||
options=()
|
||||
options+=("linux-hardened" "" on)
|
||||
options+=("linux-hardened-headers" "" on)
|
||||
options+=("linux-hardened-docs" "" off)
|
||||
|
||||
sel=$(whiptail --backtitle "$apptitle" --title "Kernel Linux Hardened 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
|
|
@ -5,7 +5,7 @@ options=()
|
|||
options+=("linux" "Default")
|
||||
options+=("linux-lts" "Long Time Support")
|
||||
options+=("linux-zen" "")
|
||||
options+=("linux-grsec" "")
|
||||
options+=("linux-hardened" "")
|
||||
|
||||
defaultitem=""
|
||||
sel=$(whiptail --backtitle "$apptitle" --title "Kernel Install :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
|
||||
|
@ -20,7 +20,7 @@ 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;;
|
||||
'linux-hardened') script install/system/kernel/linux-hardened;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue