mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-10 15:25:03 +00:00
chore: make dontstart default dialog selection.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
4596c919a6
commit
ca55e70a33
@ -21,16 +21,13 @@ chosen_driver=
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
if [ ! -t 0 ] ; then
|
|
||||||
echo "Skipping driver selection in non-interactive mode"
|
|
||||||
else
|
|
||||||
if [ -x /usr/bin/dialog ]; then
|
if [ -x /usr/bin/dialog ]; then
|
||||||
# If dialog is installed, create a dialog to let users choose the correct driver for them
|
# 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 \
|
CHOICE=$(dialog --clear --backtitle "Choose your preferred driver" --title "Falco driver" --menu "Choose one of the following options:" 15 40 4 \
|
||||||
1 "Kmod" \
|
1 "Don't start" \
|
||||||
2 "eBPF" \
|
2 "Kmod" \
|
||||||
3 "Plugin" \
|
3 "eBPF" \
|
||||||
4 "Don't start" \
|
4 "Plugin" \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
clear
|
clear
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
@ -48,7 +45,6 @@ case "$1" in
|
|||||||
# Default at old behavior: enable kmod driver
|
# Default at old behavior: enable kmod driver
|
||||||
chosen_driver="kmod"
|
chosen_driver="kmod"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -20,16 +20,13 @@ chosen_driver=
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
if [ ! -t 0 ] ; then
|
|
||||||
echo "Skipping driver selection in non-interactive mode"
|
|
||||||
else
|
|
||||||
if [ -x /usr/bin/dialog ]; then
|
if [ -x /usr/bin/dialog ]; then
|
||||||
# If dialog is installed, create a dialog to let users choose the correct driver for them
|
# 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 \
|
CHOICE=$(dialog --clear --backtitle "Choose your preferred driver" --title "Falco driver" --menu "Choose one of the following options:" 15 40 4 \
|
||||||
1 "Kmod" \
|
1 "Don't start" \
|
||||||
2 "eBPF" \
|
2 "Kmod" \
|
||||||
3 "Plugin" \
|
3 "eBPF" \
|
||||||
4 "Don't start" \
|
4 "Plugin" \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
clear
|
clear
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
@ -47,7 +44,6 @@ case "$1" in
|
|||||||
# Default at old behavior: enable kmod driver
|
# Default at old behavior: enable kmod driver
|
||||||
chosen_driver="kmod"
|
chosen_driver="kmod"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user