#!/bin/sh
#
# Turn on non-interactive mode after setting root password

set -e

pkglibdir=/usr/lib/debian-edu-install

. $pkglibdir/debian-edu-common

init_debconf

#set -x

load_config

# Enable noninteractive frontend if it worked to set default answers
debconf-set-frontend Noninteractive

# Skip debian-edu-insert-cd the first time.
# But only if it's a CD-based installation
if grep -q -vE "^deb file:///cdrom|^$|^#" /etc/apt/sources.list ; then 
  jump_to 130 debian-edu-inst
else
  jump_to 130 debian-edu-probe-cd
fi
