I have an iPhone 3gs 3.1.3 which I would like to upgrade to iOS 4.0 however, I would like to either keep or re-jailbreak the phone. Is this possible yet??
If its old bootrom you can use spirit to JB it on 3.1.3
Then install spirit2pwn from cydia from the repo http://repo.woowiz.net. Then you can restore to custom 4.0 IPSW created with pwnage.
And there you have it a JB 3GS or 4.0