docs(falco_scripts): update comments in falco-driver-loader.

Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
This commit is contained in:
Andrea Terzolo 2022-03-21 19:12:41 +01:00 committed by poiana
parent 1ebdb5648f
commit f8b97bfbce

View File

@ -221,7 +221,7 @@ load_kernel_module_download() {
print_clean_termination() { print_clean_termination() {
echo echo
echo "* [SUCCESS] Cleaning phase correctly terminated." echo "[SUCCESS] Cleaning phase correctly terminated."
echo echo
echo "================ Cleaning phase ================" echo "================ Cleaning phase ================"
echo echo
@ -233,12 +233,12 @@ clean_kernel_module() {
echo echo
if ! hash lsmod > /dev/null 2>&1; then if ! hash lsmod > /dev/null 2>&1; then
>&2 echo "* [ERROR]: This program requires lsmod." >&2 echo "This program requires lsmod."
exit 1 exit 1
fi fi
if ! hash rmmod > /dev/null 2>&1; then if ! hash rmmod > /dev/null 2>&1; then
>&2 echo "* [ERROR]: This program requires rmmod." >&2 echo "This program requires rmmod."
exit 1 exit 1
fi fi
@ -270,7 +270,7 @@ clean_kernel_module() {
done done
if [ ${MAX_RMMOD_WAIT} -eq 0 ]; then if [ ${MAX_RMMOD_WAIT} -eq 0 ]; then
echo "* [WARNING] '${KMOD_NAME}' module is still loaded, you could have incompatibility issues." echo "[WARNING] '${KMOD_NAME}' module is still loaded, you could have incompatibility issues."
echo echo
fi fi
@ -288,7 +288,7 @@ clean_kernel_module() {
echo echo
echo "- OK! Removing '${DRIVER_VERSION}' succeeded." echo "- OK! Removing '${DRIVER_VERSION}' succeeded."
else else
echo "* [WARNING] Removing '${KMOD_NAME}' version '${DRIVER_VERSION}' failed." echo "[WARNING] Removing '${KMOD_NAME}' version '${DRIVER_VERSION}' failed."
fi fi
else else
echo "- OK! There is no '${KMOD_NAME}' module in dkms." echo "- OK! There is no '${KMOD_NAME}' module in dkms."