Skip to content
Snippets Groups Projects
Commit d43540cf authored by Anton Bambura's avatar Anton Bambura
Browse files

initial commit: add a script which creates zeroed files

parents
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# For now this just creates empty files which is fine for non-LTE devices.
# TODO: Implement parsing the actual EFS from /dev/mmcblk*boot0
# See: https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/refs/heads/main/baseboard-trogdor/chromeos-base/chromeos-bsp-baseboard-trogdor/files/verify_fsg.sh
directory="/var/lib/rmtfs"
if [ ! -d "$directory" ]; then
mkdir -p "$directory"
fi
for i in fs1 fs2 fsg fsc; do
file="$directory/modem_$i"
if [ ! -f "$file" ]; then
dd if=/dev/zero bs=1M count=2 of="$file"
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment