Here's what should be in that file;
#!/bin/sh
#
# Configure script for ttylinkd
#
echo 'Configure script for ttylinkd 0.03'
echo 'Ok, the only thing I need to know is the login name of the sysop'
echo 'on this Linux box.'
echo 'For example, on my machine, I log in as csmall and that is'
echo 'what I would put for an answer.'
echo -n 'Enter sysops name: '
read name
if [ -z $name ]
then
echo "You didn't type anything.. aborting.."
exit 1
fi
echo 'Do you want me to test this parameter? I will use'
echo '/usr/bin/write to talk to the sysop.'
echo -n '[Y/n]'
read reply
if [ -z $reply ]
then
reply="y"
fi
if [ $reply = 'y' ]
then
echo 'Hello, World!' | /usr/bin/write $name
if [ $? -eq 0 ]
then
echo 'Test worked ok, I found the sysop'
else
echo 'Test failed, perhaps the sysop is not logged on'
echo 'or is refusing messages?'
fi
else
echo 'OK, skipping test.'
fi
echo '#define SYSOP_USER ' \"$name\" > config.h
echo 'Configure script completed'
exit 0
-- // /\ | | | Craig Small VK2XLZ @home: terhi.victor@logonet.com ||==||===|==|=| [44.136.13.17] @play: udjwgy.epandxr@khbo.be \\ \/ | | | @work: ljsaseld@whitewind.ru