#!/usr/bin/env bash set -xeuo pipefail # Enable SysRQ echo 'kernel.sysrq = 1' > /usr/lib/sysctl.d/90-sysrq.conf # power saving echo 'blacklist e1000e' > /usr/lib/modprobe.d/blacklist-local.conf # NetworkManager config cat < /usr/lib/NetworkManager/conf.d/local.conf [main] plugins= [device] wifi.backend=iwd EOF ln -sfn ../iwd.service /usr/lib/systemd/system/multi-user.target.wants/iwd.service ln -sfn /run/NetworkManager/resolv.conf /etc/resolv.conf # set up PAM for systemd-homed (https://bugzilla.redhat.com/show_bug.cgi?id=1806949) patch /etc/pam.d/system-auth <