Make first-boot init.d script a proper init.d script.

The script dependencies were wrong, making update-rc.d reject the script
when trying to insert it into the boot sequence, and there were no
argument handling.  With this change in place, it can be made part of
a Debian package and installed using the normal Debian tools.