obosdi-pkg/install/system/kernel/menu

27 lines
693 B
Text
Raw Normal View History

2016-04-25 17:29:23 -06:00
#!/bin/bash
. ./lib
options=()
options+=("linux" "Default")
options+=("linux-lts" "Long Time Support")
options+=("linux-zen" "")
2017-12-16 13:10:48 -07:00
options+=("linux-hardened" "")
2016-04-25 17:29:23 -06:00
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;;
2017-12-16 13:10:48 -07:00
'linux-hardened') script install/system/kernel/linux-hardened;;
2016-04-25 17:29:23 -06:00
esac
exit 0