From b31f6372591dbb6039c30b1cc37d87096f46b5f5 Mon Sep 17 00:00:00 2001 From: davedatum Date: Sat, 15 Feb 2020 12:21:23 +0000 Subject: [PATCH] added systemd timer --- calamares-launch-script.sh | 2 ++ systemd/calamares-launch.service | 10 ++++++++++ systemd/calamares-launch.timer | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 calamares-launch-script.sh create mode 100644 systemd/calamares-launch.service create mode 100644 systemd/calamares-launch.timer diff --git a/calamares-launch-script.sh b/calamares-launch-script.sh new file mode 100644 index 0000000..e7f4b00 --- /dev/null +++ b/calamares-launch-script.sh @@ -0,0 +1,2 @@ +#!/bin/bash +systemctl enable calamares-launch.timer \ No newline at end of file diff --git a/systemd/calamares-launch.service b/systemd/calamares-launch.service new file mode 100644 index 0000000..21a5544 --- /dev/null +++ b/systemd/calamares-launch.service @@ -0,0 +1,10 @@ +[Unit] +Description=Service starts calamares_polkit + +[Service] +Type=simple +User=tromjaro +ExecStart=/bin/bash calamares_polkit + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/systemd/calamares-launch.timer b/systemd/calamares-launch.timer new file mode 100644 index 0000000..8b013f3 --- /dev/null +++ b/systemd/calamares-launch.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Run calamares_polkit on boot + +[Timer] +OnBootSec=1min + +[Install] +WantedBy=timers.target \ No newline at end of file