You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
399 B
Bash
21 lines
399 B
Bash
#!/bin/sh
|
|
|
|
set -euo pipefail
|
|
|
|
# Define the paths to the SquashFS images
|
|
IMAGE="$1"
|
|
|
|
echo $IMAGE
|
|
|
|
# Define the mount points
|
|
MOUNTPOINT="./firmware"
|
|
|
|
# Create the mount points if they don't exist
|
|
mkdir -p $MOUNTPOINT
|
|
|
|
# Extract the files we need
|
|
7z x -o$MOUNTPOINT $IMAGE www/tool/ etc/*.crt -bsp1 -bso0 -bse0 -y
|
|
|
|
# Perform the diff and show only the differences
|
|
#diff --no-dereference -r $MOUNTPOINT
|