#! /bin/sh progname=irman2lirc if [ "$1" = "--help" ]; then echo "${progname}: converts irman.conf to lirc config file" echo echo "usage: ${progname} [file]" echo " where \`file' is the full file name of your irman.conf" echo " (default /usr/local/etc/irman.conf)" exit 0 fi irmanconf=${1:-/usr/local/etc/irman.conf} if [ ! -f ${irmanconf} ]; then echo "cannot find ${irmanconf}. try ${progname} --help" exit 1; fi echo "# lircd.conf automatically generated by ${progname}" cat <