diff options
Diffstat (limited to 'raveos-calamares-theme/etc/systemd/system')
| -rw-r--r-- | raveos-calamares-theme/etc/systemd/system/reflector-once.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/raveos-calamares-theme/etc/systemd/system/reflector-once.service b/raveos-calamares-theme/etc/systemd/system/reflector-once.service new file mode 100644 index 0000000..b21c1fa --- /dev/null +++ b/raveos-calamares-theme/etc/systemd/system/reflector-once.service @@ -0,0 +1,14 @@ +[Unit] +Description=Update pacman mirrorlist with reflector +Wants=network-online.target +After=network-online.target +ConditionPathExists=/etc/systemd/system/reflector-once.service +After=multi-user.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/reflector -c HU,AT,DE,PL,CZ --protocol https --sort rate --latest 20 --download-timeout 10 --threads 5 --save /etc/pacman.d/mirrorlist +ExecStartPost=/bin/systemctl disable reflector-once.service + +[Install] +WantedBy=multi-user.target |