Commit 4e4dd017 authored by udeved's avatar udeved
Browse files

add dedicated mirrors-live-net service for netinstalls; ranks by fastest mirrors

parent a063d074
...@@ -30,12 +30,14 @@ RC = \ ...@@ -30,12 +30,14 @@ RC = \
data/rc/manjaro-live \ data/rc/manjaro-live \
data/rc/mhwd-live \ data/rc/mhwd-live \
data/rc/mirrors-live \ data/rc/mirrors-live \
data/rc/mirrors-live-net \
data/rc/pacman-init data/rc/pacman-init
SD = \ SD = \
data/sd/manjaro-live.service \ data/sd/manjaro-live.service \
data/sd/mirrors-live.service \ data/sd/mirrors-live.service \
data/sd/mhwd-live.service data/sd/mhwd-live.service \
data/sd/mhwd-live-net.service
all: $(BIN) $(RC) $(XBIN) all: $(BIN) $(RC) $(XBIN)
......
#!/usr/bin/openrc-run
# Copyright 2016 artoo (artoo@manjaro.org)
# Distributed under the terms of the GNU General Public License v2
description="Pacman mirrors ranking"
depend() {
need net
}
start() {
ebegin "Running mirrors ranking"
/usr/bin/pacman-mirrors -m rank --geoip
eend $?
}
[Unit]
Description=LiveMedia Pacman mirrors ranking script
Before=systemd-user-sessions.service
[Service]
Type=oneshot
ExecStart=/usr/bin/pacman-mirrors -m rank --geoip
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment