if [ "$1" = "" ]; then
	echo "Usage: ./setLine <line to add>"
	exit
fi



param=`grep "^#\?$1" /nn/etc/ppp/options_dialin`



if [ "$param" = "" ]; then
	echo "Param not present";
	echo "Appending..."
	echo "$@" >> /nn/etc/ppp/options_dialin 
else
	echo "Param already present";
	echo "Replacing.."
	echo "/^#\?$1/ c $@" > /tmp/cmd_1
	sed -i -f /tmp/cmd_1 /nn/etc/ppp/options_dialin 
        rm -f /tmp/cmd_1
fi
