chore(scripts): add back a dontstart option.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro
2022-10-24 17:32:09 +02:00
committed by poiana
parent 91fe2e9e24
commit 4e57670599
2 changed files with 8 additions and 0 deletions

View File

@@ -24,10 +24,12 @@ case "$1" in
echo "Skipping driver selection in non-interactive mode"
else
if [ -x /usr/bin/dialog ]; then
# If dialog is installed, create a dialog to let users choose the correct driver for them
CHOICE=$(dialog --clear --backtitle "Choose your preferred driver" --title "Falco driver" --menu "Choose one of the following options:" 15 40 4 \
1 "Kmod" \
2 "eBPF" \
3 "Plugin" \
4 "Don't start" \
2>&1 >/dev/tty)
clear
case $CHOICE in
@@ -42,12 +44,14 @@ case "$1" in
;;
esac
else
# Default at old behavior: enable kmod driver
chosen_driver="kmod"
fi
fi
;;
esac
# If needed, try to load/compile the driver through falco-driver-loader
case "$chosen_driver" in
"kmod")
falco-driver-loader module