obosdi-pkg/install/system/kernel/menu

27 lines
691 B
Text
Raw Permalink 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=""
2022-11-10 14:27:23 -07:00
sel=$(dialog --backtitle "$apptitle" --title "Kernel Install :" --default-item "$defaultitem" --cancel-button "Back" --menu "" 0 0 0 \
2016-04-25 17:29:23 -06:00
"${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