#!/bin/sh
if [ "$var1" != "${var1%mtu *}" ]; then
echo "Matches, do something"
fi
If the pattern doesn't match its value will be equal to the variable. If there's a match (even with % or #) it will return something else... and we're good to go :)