Since a long time ago my Sony Vaio with Lubuntu 11.10 is showing a red FAIL message during the shutdown process.
It tries to kill some process and the white messages on the screen frozen for some seconds (a little pause) and then the FAIL appears and the shutdown goes on.
But it was not like this when I'd installed Lubuntu. Something happened and I didn't know until last week.
Last week I discovered why it is pausing the shutdown process for a while.
I disabled the wireless adaptor using the button in front of my laptop (that is, the hardware was off). Then I noticed that the shutdown was so quickly. No FAIL messages and my laptop was off after maybe 5 or 6 seconds.
So I'm almost sure that some wlan0 connection is holding the shutdown process. Maybe it is trying to keep connected or trying to disable the connection.
If I disable it using the button, everything is fast.
Any idea to fix this?
Edit: following the suggestion given by @Gilles, now the shutdown process is very fast. I used his script with the additional line
rfkill block all.
But, as we can see on the image below, the script is returning some