mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-08 01:59:33 +00:00
chore(scripts): add back a dontstart option.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
committed by
poiana
parent
91fe2e9e24
commit
4e57670599
@@ -25,10 +25,12 @@ case "$1" in
|
|||||||
echo "Skipping driver selection in non-interactive mode"
|
echo "Skipping driver selection in non-interactive mode"
|
||||||
else
|
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
|
||||||
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 "Kmod" \
|
||||||
2 "eBPF" \
|
2 "eBPF" \
|
||||||
3 "Plugin" \
|
3 "Plugin" \
|
||||||
|
4 "Don't start" \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
clear
|
clear
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
@@ -43,12 +45,14 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
# Default at old behavior: enable kmod driver
|
||||||
chosen_driver="kmod"
|
chosen_driver="kmod"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# If needed, try to load/compile the driver through falco-driver-loader
|
||||||
case "$chosen_driver" in
|
case "$chosen_driver" in
|
||||||
"kmod")
|
"kmod")
|
||||||
falco-driver-loader module
|
falco-driver-loader module
|
||||||
|
@@ -24,10 +24,12 @@ case "$1" in
|
|||||||
echo "Skipping driver selection in non-interactive mode"
|
echo "Skipping driver selection in non-interactive mode"
|
||||||
else
|
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
|
||||||
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 "Kmod" \
|
||||||
2 "eBPF" \
|
2 "eBPF" \
|
||||||
3 "Plugin" \
|
3 "Plugin" \
|
||||||
|
4 "Don't start" \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
clear
|
clear
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
@@ -42,12 +44,14 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
# Default at old behavior: enable kmod driver
|
||||||
chosen_driver="kmod"
|
chosen_driver="kmod"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# If needed, try to load/compile the driver through falco-driver-loader
|
||||||
case "$chosen_driver" in
|
case "$chosen_driver" in
|
||||||
"kmod")
|
"kmod")
|
||||||
falco-driver-loader module
|
falco-driver-loader module
|
||||||
|
Reference in New Issue
Block a user