#!/usr/pkg/bin/bash for cacert in $@; do if [ -f "$cacert" ]; then hash=`openssl x509 -noout -hash -in $cacert` ln -sf $cacert $hash.0 fi done