Use capital R extension for R scripts.
generate key in the initscript instead of post-install
- this allows things to work easily even on pre-installed system images, such as liveCDs, c.f. debian bug #594175