The trick there would be to detect:
- If it's a hard disk.
- If the user has already run the "enable hibernate" script.
Or the "enable hibernate" script needs to take into account the possibility that the swap file already exists. Not too hard either.
For detecting the drive, "hdparm -i" might be the way to go. I don't have any netbook with flash drive to try.
But yes, I agree, having swap with any netbook with a hard drive makes sense. Maybe just forget the checking for type of hard drive, and always create the swap if the /home/ partition has more than, let's say, 20Gb free?
I don't think we'll be seeing SSDs of that size in budget netbooks anytime soon.