They had serious opposition because they can't feed their people and they were going to have to start giving real concessions and maybe even some semblance of democracy.
Yeah, their slaughtering of possibly tens of thousands of protesters was clearly a sign of upcoming concessions.
Dictators lose when they make concessions. They stay in power when they double down. That's the hard lesson of a hundred years or so of dipshits becoming big boss by military coup or revolution. Those who put absolutely every penny into propaganda and oppression tend to hang on to power the longest.
And given what the IRGC and the regime have done to the Iranian people and how much they're loved in the rest of the world, staying in power is literally a life-or-death matter for them. The day the regime falls, we'll see all the Ayatollahs and minions hanging from trees.
We will see how much Iran has beaten down their people and if any resistance still remains with the internet now slowly being restored.
We likely won't.
They made it very clear that they are monitoring and restricting Internet access, and the fact that even during an active war they went on to sentence and hang protesters makes it abundantly clear what will happen to anyone sharing information with the world that they'd rather not see on the world news.
Also, most cell towers do have generators and/or battery backups,
I've never seen generators on cell towers, and the batteries last a few hours. They're meant to cover the occasional western world power outage, not a major one.
FORTRAN is for pipe stress freaks and crystallography weenies.