#!/bin/bash

if [[ -e /var/run/nip-update ]] ; then
	echo "need to reboot before running another update." > /dev/kmsg
	exit 0
fi

touch /var/run/nip-update

cp /usr/local/sbin/run-rppl-update /var/run/run-rppl-update
exec /var/run/run-rppl-update "$@"
