modules dialog too complex ?
for a simple user modules dialog is too complex
can you detect if somes modules are needed ? Add more body text ? or short description with item ? auto add KERNEL-headers if virtualbox-host selected ?
# Choose wanted kernel modules
local invb="off"
[[ $(</sys/class/dmi/id/product_name) == "VirtualBox" ]] && invb="on"
# other detect ?
DIALOG " $_ChsAddPkgs " --checklist "\n$_UseSpaceBar\n " 0 0 12 \
"KERNEL-headers" "for compile kernel" off \
"KERNEL-acpi_call" "enables calls to ACPI" on \
"KERNEL-ndiswrapper" "Windows Network Drivers" on \
"KERNEL-broadcom-wl" "wifi driver BCM43142" off \
"KERNEL-r8168" "Realtek 8168 network cards" off \
"KERNEL-rt3562sta" "Ralink RT3562 PCI WLAN" off \
"KERNEL-tp_smapi" "ThinkPad's SMAPI functionality" off \
"KERNEL-vhba-module" "emulates SCSI devices" off \
"KERNEL-virtualbox-guest-modules" "install in virtualbox" "${invb}" \
"KERNEL-virtualbox-host-modules" "use virtualbox" off \
"KERNEL-spl" "Solaris Porting Layer" off \
"KERNEL-zfs" "Zettabyte File System" off 2>/tmp/.modules || return 0