#!/bin/sh
#
# Copyright Rene Mayrhofer, 2005
# This script finalizes an update that has been started before the last boot.

if [ -e /initrd/mnt/media/updating ]; then
  echo "System update in progress, first boot seems successful."
  echo -e "Finalizing update now ... "
  mount -o remount,rw /initrd/mnt/media/
  rm /initrd/mnt/media/updating
  rm /initrd/mnt/media/md5sums.lst
  mount -o remount,ro /initrd/mnt/media/
  echo "done"
fi
