Listing 1

#!/bin/sh
if [ ! $# = 1 ]
then
  echo "$0: usage: $0 <location>
  exit 0
fi
for i in /etc/resolv.conf /etc/rc.d/rc.inet1\
   /etc/pcmcia/network.opts
do
  if [ -f $i.$1 ]
      then
    ln -sf $i.$1 $i
  fi
done