From be0c0b17970685524bc83469fa3f1cf7623e17fc Mon Sep 17 00:00:00 2001 From: Matt Taggart Date: Tue, 17 Apr 2012 18:52:52 -0700 Subject: attempt to set when based on a calculation using the hostname, thanks to jessib for the code. I hope this works. --- templates/sys.conf.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/sys.conf.erb b/templates/sys.conf.erb index a684e8b..2ca7250 100644 --- a/templates/sys.conf.erb +++ b/templates/sys.conf.erb @@ -9,6 +9,13 @@ end end -%> +when = everyday at <%= i = 0 + total = 0 + until i == hostname.length + total += (hostname[i] - 96) / (2.9 * (10 ** (i + 1))) + i += 1 + end + (total*60).to_i -%> packages = <%= packages ? 'yes' : 'no' %> partitions = <%= partitions ? 'yes' : 'no' %> dosfdisk = <%= dosfdisk ? 'yes' : 'no' %> -- cgit v1.2.3