#!/bin/sh
# Offline installations rank their mirrors once, on the first real connection.
[ -e /var/lib/windoesnot/mirrors-ranked ] && exit 0
case "$2" in
    up) ;;
    connectivity-change) [ "$CONNECTIVITY_STATE" = FULL ] || exit 0 ;;
    *) exit 0 ;;
esac
exec systemctl start --no-block windoesnot-first-network.service
