#! /bin/sh
echo -n "Enter the address of the port that you want to use [0x378] "
read PORT
echo -n "#define PORT " > config.h
if [ -z "$PORT" ];
then
	PORT=0x378
fi
echo $PORT >> config.h
echo -n "Enter the update-delay in milliseconds [10] "
read DELAY
echo -n "#define DELAY " >> config.h
if [ -z "$DELAY" ];
then
	DELAY=10
fi
echo $DELAY >> config.h
echo -n "Enter the real-time-priority for the daemon process (0 for normal) [0] "
read PRIORITY_REAL
echo -n "#define PRIORITY_REAL " >> config.h
if [ -z "$PRIORITY_REAL" ];
then
	PRIORITY_REAL=0
fi
echo $PRIORITY_REAL >> config.h
echo Configured for port $PORT with a delay of $DELAY milliseconds.
echo Now do a 'make' or 'make userd' for just getting the executable,
echo or run 'make install' to get userd installed.
