#!/bin/sh tim_path="/home/mats/share/timidity" if [ $# -eq 0 ]; then echo "usage: setsf s|g2m|g4m|g8m|g8mx" >&2 exit 1 fi case $1 in s) cfg="symphonic.cfg" ;; g2m) cfg="gmidi2m.cfg" ;; g4m) cfg="gmidi4m.cfg" ;; g8m) cfg="gmidi8m.cfg" ;; g8mx) cfg="gmidi8mx.cfg" ;; *) echo "setsf: Invalid parameter" >&2 exit 1 ;; esac ln -sf "$tim_path/$cfg" "$tim_path/timidity.cfg" .