#!/bin/sh if [ $# -lt 2 ]; then echo "usage: $0 <fqdn> <passphrase> [<city>] [<pref>]" echo "pref : default => KANAGAWA" echo "city : default => YOKOHAMA" exit 1; fi echo "-------------------------------------------------------" CN=$1 PP=$2 CITY=$3 PREF=$4 # default CITY=${CITY:=YOKOHAMA} PREF=${PREF:=KANAGAWA} echo CN=$CN echo PP=$PP echo CITY=$CITY echo PREF=$PREF echo "-------------------------