#!/bin/sh -e

# install all packages that were pulled in by enabling modules in
# restricted-manager, since we do save the X.org configuration already. Without
# the accompanying driver packages (like nvidia-glx), the target system would
# be wrecked.

PKGLIST=/var/cache/restricted-manager/installed_packages

[ -e $PKGLIST ] || exit 0

for p in `cat $PKGLIST`; do
    apt-install $p
done
