Stuff from Arch Linux initscripts

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>