1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
#!/bin/sh
test -f /usr/lib/debian-edu-install/version || exit 0
. /lib/lsb/init-functions
firstboot_file=/etc/debian-edu/xdebian-edu-firstboot
set -e
do_start() {
logger -t debian-edu-install "Executing xdebian-edu-firstboot"
if [ -x /usr/share/debian-edu-config/tools/run-at-firstboot ] ; then
log_begin_msg "Running debian-edu-config run-at-firstboot"
/usr/share/debian-edu-config/tools/run-at-firstboot
log_end_msg 0 || true
fi
touch "$firstboot_file"
if [ -f /etc/debian-edu/config ] ; then . /etc/debian-edu/config ; fi
if [ true = "$TESTINSTALL" ]; then
log_begin_msg "Collecting testsuite results"
/usr/share/debian-edu-install/debian-edu-testsuite
log_end_msg $? || true
else
log_begin_msg "Not collecting testsuite results"
log_end_msg 0 || true
fi
}
case "$1" in
start)
if [ ! -f "$firstboot_file" ]; then
do_start
fi
;;
stop|force-reload|restart)
;;
*)
echo "Usage: /etc/init.d/xdebian-edu-firstboot {start|stop|restart|force-reload}"
disable_exception
exit 1
;;
esac
exit 0
|