I'm even lazier, stole another commenter's script and just have it run on reboot.
Is it idempotent? No, every reboot it adds the line again. Doesn't appear to matter though.
Is it idempotent? No, every reboot it adds the line again. Doesn't appear to matter though.
See my other reply on this thread.