BASH puzzle

Although only 1½ people read this blog, I’m hoping I’ll get some responses to this puzzle. I figured out a solution, but I’m worried i was being too clever and that there’s an even simpler BASH way of handling this.

Patch: Ubuntu DRBD now can haz run after boot

Ubuntu server edition “brings the power of inexpensive shared storage to your servers”. In particular, they tout DRBD support. Unfortunately, in Ubuntu 8.10 Intrepid Ibex, DRBD won’t start at boot.

The bug wasn’t too hard to track down. The problem is the update-rc.d script (run in the package postinst) is parsing the LSB headers in the DRBD init.d script. The LSB headers tell update-rc.d to not include runlevel 2 (Ubuntu’s default) when installing symlinks, so none is made in rc2.d. Hence, the init script is not run during startup.

I put documentation and a debdiff (package patch) on the launchpad bug report. However, even though this package is in main, I have no faith this bug will be fixed by Ubuntu (see update below the fold). So, for your server’s enjoyment, grab the patched packages we are using at my company:

A way to STOP text message spam

If you are being text spammed by a short-code (a mobile number typically 5 digits long), just reply with “STOP”. This should work if it’s a service that cares to not piss off its recipients. This probably won’t work for an annoying relative. In my case, spam was coming from a service called Kadoink, and after I sent “STOP”, I got back a text that said I’d receive no more messages. I suspect this is some sort of industry accepted command: I found it in AT&T’s, What YOU can do to control cell phone spam.

CA Prop 8 invokes Hitler?!

How they dare to bring Hitler into the mix is beyond me. As if gay marriage could possibly, in any way, be put on par with what Hitler brought to the world. It’s totally insane and made me donate 4x my previous amount to Vote No on Prop 8. Please donate (and of course vote NO, if you can)!

I originally donated thanks to a post made by A Coder Who Says Py. He reminded me how important this is.