#!/bin/bash
Raw_date="`date +%H%M`"
cat <<'EOF'>> /tmp/bootdelay
XXXX
EOF
sed -i -e "s/XXXX/$Raw_date/g" /tmp/bootdelay