Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit cc516f7

Browse files
committed
installer: pass dynamic debug paramters to module
1 parent 127ec92 commit cc516f7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

deploy/install.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,19 @@ is_kernel_module_available() {
8686
load_nasp_module() {
8787
local module_name="nasp"
8888
local config_file="/etc/modules-load.d/modules.conf"
89-
local parameters="ktls_available=0"
89+
local parameters=("dyndbg==_")
9090

9191
log "Loading nasp kernel module..."
9292
if is_kernel_module_available "tls"; then
93-
parameters="ktls_available=1"
93+
parameters+=("ktls_available=1")
94+
else
95+
log "TLS kernel module not available. Disabling ktls."
96+
parameters+=("ktls_available=0")
9497
fi
9598

96-
sudo modprobe nasp ${parameters}
99+
sudo modprobe nasp "${parameters[@]}"
97100

98-
# Check if the configuration file already exists
101+
# Check if the module loading configuration file already exists
99102
if [ -e "$config_file" ]; then
100103
echo "Configuration file '$config_file' already exists. Appending parameters."
101104
echo "$module_name" | sudo tee -a "$config_file"

0 commit comments

Comments
 (0)