#!/bin/sh set -e # check environment variables are set if [ -z "$CC03_ROOT" ]; then echo "Error: CC03_ROOT not set, nothing done" exit 1 fi ${CC03_ROOT}/bin/cc03-check # tag the CD with a version (by writing the date and time into a file # which will be accessible as /cdrom/cc03-version.txt) DATE=`date "+%Y-%m-%d-%H-%M-%S"` echo "${DATE}" > $CC03_PART/knx/master/cc03-version.txt echo "${DATE}" >> ~/cc03-versions.log exit # change the boot message file WARNING UNTESTED mount -o loop $PART/knx/source/KNOPPIX/boot.img /mnt if ! test -f $PART/knx/boot.img.orig; then cp $PART/knx/master/KNOPPIX/boot.img $PART/knx/boot.img.orig fi head -2 /mnt/boot.msg > /tmp/boot.msg echo "KNOPPIX 3.2-2003-06-06 EN http://www.knoppix.de/ CC03 ${DATE}" >> /tmp/boot.msg cp /tmp/boot.msg /mnt/ umount /mnt # FIXME try, but rumour has it this may break things, no explanation available.