I have the following problem: When logging out of an Intel NUC connected via WLAN, a shutdown script is executed. This script is supposed to check a service, but that service is only accessible when the WLAN is enabled. Unfortunately, the WLAN or the WLAN card is disabled during the shutdown command before the script is executed.
Is there a way to make disabling the WLAN card the last step in this process?