#!/bin/sh
#
# Icon helper (shell script attached to RHN icon on the desktop)
# Copyright (c) 2001 Red Hat, Inc. All rights reserved.
#
# Author: Preston Brown <pbrown@redhat.com>


# If the system appears to already be registered, run Update Agent, if
# it is available. Otherwise, run the Registration Wizard.

if [ -f /etc/sysconfig/rhn/systemid -a -x /usr/bin/up2date ]; then
    /usr/bin/up2date
else
    /usr/bin/rhn_register
fi
