#!/bin/sh
[ -z "${IPKG_INSTROOT:-}" ] || exit 0
if ! LANUPS_SKIP_PACKAGES=1 /usr/sbin/lanups-router; then
    mkdir -p /etc/lanups
    touch /etc/lanups/pending
    echo 'LanUps package installed; UPS setup will retry automatically when the USB cable is reconnected.' >&2
fi
exit 0
