#!/bin/bash # # SPDX-License-Identifier: GPL-3.0-or-later # Choose mirror from the kernel command line grep -qoP 'mirror=\K\S+' /proc/cmdline && /usr/local/bin/choose-mirror