Commit 5a4db641 authored by Tails developers's avatar Tails developers

Log that we're going to step NM before trying to do it.

parent 7369cd34
......@@ -63,8 +63,8 @@ mac_spoof_panic() {
echo "blacklist ${module}" >> /etc/modprobe.d/"${module}"-blacklist.conf
unload_module_and_rev_deps "${module}" || :
if nic_exists "${nic}"; then
service network-manager stop
log "Failed to unload module ${module} of NIC ${nic}. Stopping NetworkManager."
service network-manager stop
notify_panic_failure "${nic}" "${nic_name}" &
log "Successfully unloaded module ${module} of NIC ${nic}."
......@@ -126,8 +126,8 @@ then
# If mac_spoof_panic() fails we're quite screwed, so we kill
# NetworkManager without notification to do our best to
# prevent a MAC address leak.
service network-manager stop
log "Panic mode failed for NIC ${NIC}. Killing NetworkManager."
service network-manager stop
exit 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment