rm -f /tmp/rc.galatead
echo SERVDIR=$SERVDIR';'export SERVDIR > /tmp/rc.galatead
cat rc.galatead >> /tmp/rc.galatead
if [ -f /etc/rc.local ]; then
	cat /etc/rc.local >> /tmp/rc.galatead
else
	touch /etc/rc.local
	chmod 644 /etc/rc.local
fi
cp /tmp/rc.galatead /etc/rc.local
rm -f /tmp/rc.galatead
