script from the services tree. svn path=/nixos/trunk/; revision=10722
svn path=/nixos/trunk/; revision=9867
svn path=/nixos/trunk/; revision=9830