#!/bin/bash

# Note: The default config files tell AutoRPM to only *tell* you
# about updates and not do anything about them.  You can change
# this by editing the files in /etc/autorpm.d

# You can tell AutoRPM to wait a random amount of
# time before it actually starts doing anything.
# This is so that every machine in the same timezone doesn't
# try to connect and get updates at the same time.  When you
# run it interactively, you probably don't want this, but this
# script is running it in a cron job, which is good

# Start AutoRPM and tell it to wait up to 2 hours before actually
# looking for updates
/usr/sbin/autorpm --delay=7200 >> /var/log/autorpm 2>&1