Hi Sime, Sime Ramov wrote on Mon, Oct 31, 2011 at 12:45:29PM +0100:
> I've got tired of setting up my system after clean installs of -current > so I wrote this simple script which I pipe to perl immediately after > first boot. You want to look at http://www.openbsd.org/faq/faq4.html#site You are reinventing parts of site50.tgz, install.site, and rc.firsttime(8), but in a way that requires more manual labour. > Maybe someone finds it useful. Everybody has some local scripts that won't be useful anywhere else because they are kludgy and highly specialized. Yours is a typical case (and i have some, too). > #!/usr/bin/perl > # Usage: ftp -o - -V http://dl.ramov.com/bootstrap.pl | perl - Bad idea for anybody else to do that; who knows how you are going to change your script tomorrow? > foreach (@packages) { system('pkg_add', $_); } pkg_add(8) can install more than one package at once, and with less overhead. > system('pkill', 'sendmail'); > system('newaliases'); > system('/usr/libexec/smtpd/makemap', '/etc/mail/secrets'); > system('smtpd'); Parts seem to be missing here to edit mailer.conf(5) and rc.conf.local(8) to disable sendmail(8) and enable smtpd(8); and you could use rc.d(8); but note that smtpd(8) is still not officially supported for production as far as i know - even though it may be getting close. Yours, Ingo

