if [ "$1" = "" ]; then
	echo "Usage: ./setRespawnIpppd <channelIndex> <value>"
	exit
fi


# Adding a new Entry. Modifying existing one is not handled by this.

PREV_INDEX=`expr $1 - 1`

echo "/	RespawnIpppd\[$PREV_INDEX\]/ a \	RespawnIpppd[$1]=\"$2\"" > /tmp/respawnipppdadd
sed -i -f /tmp/respawnipppdadd $3
rm -f /tmp/respawnipppdadd
