I hope your seatpost broke off BEFORE you came up with this idea!
And what a good idea! I'm only mad I didn't think of this myself! I have ordered my first seatpost rack and am going to use this, only with some square tubing I have laying around to act as supports and another seatpost type...