JERUSALEM (AFP) - Outgoing Israeli Prime Minister Ehud Olmert warned on Tuesday of a looming confrontation with the Hamas Movement, which controls the Gaza Strip. "I have no doubt that the situation between us and Hamas is an unavoidable pre-confrontation situation," Olmert said while touring the military headquarters responsible for the Gaza region. "It's only a question of time and not a question of if," his office quoted him as saying on the tour. "We are not eager for it but we are not afraid either and if there is a need to fight Hamas we will do so. In any event we should be alert and prepared." Israel imposed a blockade of Gaza after Hamas seized control of the territory from forces loyal to Western-backed Palestinian president Mahmud Abbas in June last year. On Tuesday Israel reopened the terminal that handles all fuel supplies to Gaza to allow delivery of diesel to the Palestinian territory's sole power plant one day after it shuddered to a halt. But a UN agency warned it would have to suspend food distribution on which a majority of Gaza's 1.5 million population depends unless Israel also allows in vital foodstuffs. Olmert presented his resignation as premier amid persistent corruption allegations in September but will remain at the head of a caretaker government until after snap parliamentary elections in February. Meanwhile, Israeli Foreign Minister Tzipi Livni distanced herself on Tuesday from comments by outgoing Prime Minister Ehud Olmert calling for painful territorial concessions for Middle East peace. In an interview with army radio, Livni, who will lead Olmert's centrist Kadima party into a snap February election, said she was not bound by his policies. "I am bound by the Kadima platform that I drafted and in which I laid down principles for negotiations with the Palestinians that the whole world can support," said Livni, who is Israel's lead negotiator in the peace talks. "It is possible to conduct the negotiations in my own way without having to arrive at the outcome raised by the outgoing prime minister." In a speech to parliament on Monday marking the anniversary of the assassination of prime minister Yitzhak Rabin, Olmert said Israel needed to give up large tracts of land in the West Bank, including Arab east Jerusalem, and on the Golan Heights, in exchange for peace. The comments drew accusations from the right-wing opposition that the outgoing premier was abusing Rabin's memory for political ends. "Olmert's speech was a disgraceful exploitation of the official occasion for a sermonising political speech in the spirit of the radical left," charged MP Gidon Saar, whose Likud party is running neck-and-neck in the opinion polls with Kadima. "Rabin is turning over in his grave after Olmert overtook him from the left," said Zvulun Orlev from the pro-Jewish settler National Religious Party.