#!/bin/sh

/lib/debian-installer/exit-command
CMDN=$?

case "$CMDN" in
  20) CMD=reboot;;
  21) CMD=halt;;
  *) echo "got weird return code $CMDN";;
esac

/bin/umount -a -r
/sbin/swapoff -a

$CMD
