######################### # # Place this file in /etc/systemd/system/bootflag.service # and download bootflag.pyz to /usr/local/bin/bootflag # # wget -O /usr/local/bin/bootflag https://cdn.privex.io/github/auto-provisioner/bootflag.pyz # chmod +x /usr/local/bin/bootflag # wget -O /etc/systemd/system/bootflag.service https://cdn.privex.io/github/auto-provisioner/bootflag.service # # Then simply run: # systemctl enable bootflag.service # # If you're adding the service to an image where you can't # run systemctl within a chroot (or it's a pain to do so), # then you can hackily symlink the service to enable it: # # ln -v -s /etc/systemd/system/bootflag.service etc/systemd/system/multi-user.target.wants/ # ######################### [Unit] Description=bootflag script After=network.target [Service] User=root WorkingDirectory=/root Type=oneshot ExecStart=/usr/local/bin/bootflag [Install] WantedBy=multi-user.target