In general that looks fine. However, you should robustify it for the case that /proc/swaps does not exist for some reason (people might have disabled it in the kernel config, or whatever). Also, can you please open an upstream bug for it and link it here?
I'll sponsor this to intrepid and hardy-proposed after that. Thanks! -- Disable hibernation if swap is on file https://bugs.launchpad.net/bugs/224697 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs