#!/bin/bash if [[ $# != 1 ]]; then echo >&2 "Usage: $0 path/to/libc.so" exit 2 fi . common/libc.sh [[ -e $1 ]] || exit sha256=`sha256sum $1` check_sha256 $sha256 || exit echo "No SHA-256 match found in the database"