Include git version information in webpage and /etc/rpi-issue (#110)

Fixes #95.
This commit is contained in:
Peter Johnson
2019-02-18 01:22:58 -08:00
committed by GitHub
parent 3f1dc37384
commit 3f9cbe8b41
6 changed files with 26 additions and 6 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ export -f on_chroot
update_issue() {
local GIT_HASH
GIT_HASH=$(git rev-parse HEAD)
echo -e "FRCVision ${IMG_DATE}\nGenerated using pi-gen, https://github.com/allwpilib/FRCVision-pi-gen, ${GIT_HASH}, ${1}" > "${ROOTFS_DIR}/etc/rpi-issue"
echo -e "FRCVision ${IMG_VERSION} built on ${IMG_DATE}\nGenerated using pi-gen, https://github.com/allwpilib/FRCVision-pi-gen, ${GIT_HASH}, ${1}" > "${ROOTFS_DIR}/etc/rpi-issue"
}
export -f update_issue