Skip to content

Instantly share code, notes, and snippets.

@cfm
Last active July 12, 2022 00:11
Show Gist options
  • Save cfm/aaa62c65848b6c8a602bb81538b62633 to your computer and use it in GitHub Desktop.
Save cfm/aaa62c65848b6c8a602bb81538b62633 to your computer and use it in GitHub Desktop.
Gist file Target file
rc.local sys-net:/rw/config/rc.local
#!/bin/sh
# This script will be executed at every VM startup, you can place your own
# custom commands here. This includes overriding some configuration in /etc,
# starting services etc.
# Example for overriding the whole CUPS configuration:
# rm -rf /etc/cups
# ln -s /rw/config/cups /etc/cups
# systemctl --no-block restart cups
### BEGIN securedrop-workstation ###
# Wait for iwlwifi to fail. Then unload it, remove the incompatible firmware, and reload it.
sleep 5
modprobe -r iwlmvm iwlwifi
rm -f /lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm.xz
modprobe iwlmvm
modprobe iwlwifi
### END securedrop-workstation ###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment