# Based on https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/refs/heads/main/baseboard-trogdor/chromeos-base/chromeos-bsp-baseboard-trogdor/files/verify_fsg.sh
# which is Copyright 2020 The ChromiumOS Authors
JOB="verify_fsg.sh"
RMTFS_DIR=/var/lib/rmtfs
RMTFS_BOOT_DIR="${RMTFS_DIR}/boot"
FSG_PATH="${RMTFS_BOOT_DIR}/modem_fsg"
FSG_SOURCE="$(echo /dev/mmcblk*boot0)"
# Logging messages go directly to /dev/kmsg because we run before
# syslog is available.
logit(){
echo"<6>${JOB}:""$@"> /dev/kmsg
}
logwarn(){
echo"<4>${JOB}:""$@"> /dev/kmsg
}
logerr(){
echo"<3>${JOB}:""$@"> /dev/kmsg
}
# Read the FSG fuse hash, and store the result into