Files
winf-photobooth/board/hp/9000/post-image.sh
Michael b8783708ae Initial Commit
- initial default booting image
2026-11-06 20:45:42 +01:00

17 lines
442 B
Bash
Executable File

#!/bin/sh
set -eu
BOARD_DIR="$(dirname "$0")"
# Generate a random 32-bit signature for the disk image and
# substitute it in genimage configuration file and palo script.
PARTUUID="$("$HOST_DIR"/bin/uuidgen -r |sed 's/-.*//')"
sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/genimage.cfg.in" \
> "$BINARIES_DIR/genimage.cfg"
sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/palo.sh.in" \
> "$BINARIES_DIR/palo.sh"
chmod +x "$BINARIES_DIR/palo.sh"