The African Union says South Sudan will restart pumping oil in two weeks and will export as soon as it's technically possible.

The deal to restart the oil industry was signed by South Sudan and Sudan on Tuesday. South Sudan pumps its oil through pipelines that run through Sudan.

South Sudan broke away from Sudan in 2011. In early 2012 South Sudan accused Sudan of stealing its oil and the south shut down its oil industry. That decision has crippled the government budgets of both countries.

Since their 2011 division, there has been fighting between the two countries, and threats to resume hostilities. International mediators have been working to keep the peace and get the sides to agree on financial terms to restart the flow of oil.