Commit c44e9df1 authored by intrigeri's avatar intrigeri
Browse files

Trigger MAC spoofing "panic" mode when the debug=test_mac_spoof_panic boot option is set

This will ease my review of !70 and future work on the panic mode
code paths.
parent cd190b82
......@@ -139,7 +139,8 @@ done
# point we have to take some drastic measures in order to prevent
# potential leaks.
if [ -z "${OLD_MAC:-}" ] || [ -z "${NEW_MAC:-}" ] || \
[ "${OLD_MAC:-}" = "${NEW_MAC:-}" ]
[ "${OLD_MAC:-}" = "${NEW_MAC:-}" ] || \
grep -qs -w 'debug=test_mac_spoof_panic' /proc/cmdline
log "Failed to spoof MAC address of NIC ${NIC}. Going into panic mode."
if ! mac_spoof_panic "${NIC}"; then
Supports Markdown
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