#!/bin/bash -e

if [ -d /proc ]; then
	if grep -q '^flags.* mmx' /proc/cpuinfo; then
		exec -a john /usr/sbin/john-mmx $*
	else
		exec -a john /usr/sbin/john-any $*
	fi
else
	echo "Proc File System not available. Can't run john."
fi
exit 0
