12345678910111213141516171819202122232425262728 |
- #!/bin/bash
- # Simple bootstrap script to build and run the daemon
- set -e
- # Echo the rest so it's obvious
- set -x
- meson --prefix=/usr build
- cd build
- ninja
- # Verify user wants to install
- set +x
- read -p "Install to /usr? [Yy] " -r
- [[ $REPLY =~ ^[Yy]$ ]]
- set -x
- sudo ninja install
- # Verify user wants to run the daemon
- set +x
- read -p "Enable and run the daemon? [Yy] " -r
- [[ $REPLY =~ ^[Yy]$ ]]
- set -x
- systemctl --user daemon-reload
- systemctl --user enable gamemoded
- systemctl --user start gamemoded
- systemctl --user status gamemoded
|