Commit 988b4186 authored by Tails developers's avatar Tails developers

Improve MAC spoof panic notifications.

parent 892b97cb
...@@ -26,7 +26,9 @@ notify_panic_success() { ...@@ -26,7 +26,9 @@ notify_panic_success() {
local nic_name local nic_name
nic="${1}" nic="${1}"
nic_name="${2}" nic_name="${2}"
show_notification "`gettext \"MAC spoofing failure!\"`" "`eval_gettext \"MAC spoofing failed for network device '\\\${nic_name}' (\\\${nic}). The device has been disabled to prevent it from leaking your geographical location. For more information, see the <a href='file:///usr/share/doc/tails/website/doc/first_steps/startup_options/mac_spoofing.en.html'>documentation</a>.\"`" show_notification "`gettext \"Network card \\\${nic} disabled\"`" \
"`eval_gettext \"MAC spoofing failed for network card \\\${nic_name} (\\\${nic}) so it is temporarily disabled.
You might prefer to restart Tails and disable MAC spoofing. See the <a href='file:///usr/share/doc/tails/website/doc/first_steps/startup_options/mac_spoofing.en.html'>documentation</a>.\"`"
} }
notify_panic_failure() { notify_panic_failure() {
...@@ -34,7 +36,9 @@ notify_panic_failure() { ...@@ -34,7 +36,9 @@ notify_panic_failure() {
local nic_name local nic_name
nic="${1}" nic="${1}"
nic_name="${2}" nic_name="${2}"
show_notification "`gettext \"MAC spoofing failure!\"`" "`eval_gettext \"MAC spoofing failed for network device '\\\${nic_name}' (\\\${nic}). Because of failures when trying to disable the device, networking has been completely disabled instead. For more information, see the <a href='file:///usr/share/doc/first_steps/startup_options/mac_spoofing.en.html'>documentation</a>.\"`" show_notification "`gettext \"All networking disabled\"`" \
"`eval_gettext \"MAC spoofing failed for network card \\\${nic_name} (\\\${nic}). The error recovery also failed so all networking is disabled.
You might prefer to restart Tails and disable MAC spoofing. See the <a href='file:///usr/share/doc/first_steps/startup_options/mac_spoofing.en.html'>documentation</a>.\"`"
} }
mac_spoof_panic() { mac_spoof_panic() {
......
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