Skip to content

Instantly share code, notes, and snippets.

@2sjha
Created October 1, 2022 22:46
Show Gist options
  • Save 2sjha/9ad72a90c2b6aedf61f157c97dcaa447 to your computer and use it in GitHub Desktop.
Save 2sjha/9ad72a90c2b6aedf61f157c97dcaa447 to your computer and use it in GitHub Desktop.
## This is a systemctl service that will run the script after every start.
## Copy the change-refind-bg.sh file, use that file's location in ExecStart.
## Create this service in /etc/systemd/system/change-refind-bg.service using root previleges.
## systemctl start change-refind-bg.service
## systemctl enable change-refind-bg.service
[Unit]
Description=Change Refind Background
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=sh /home/ssj/.config/old-autostart-scripts/change-refind-bg.sh
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment