mkimage-profiles/features.in/ldm/rootfs/image-scripts.d/50-ldm
Konstantin A. Lepikhov b278c718ad features: added LDM support
Linux Driver Management (aka LDM) allows easy configuration of different
hardware. Currently this hook does GPU configuration on systems with
multiple GPUs (aka Optimus/PRIME).
2018-07-08 20:44:41 +03:00

18 lines
307 B
Bash
Executable File

#!/bin/sh -efu
# initiate LDM hook on boot
cat << EOF > /etc/systemd/system/ldm.service
[Unit]
Description=Runs LDM configuration hooks
[Service]
ExecStart=/usr/bin/linux-driver-management configure gpu
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=default.target
EOF
systemctl enable ldm.service