From 3b222c68832d3495d4b04eff404324ebe843b803 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Tue, 4 Nov 2008 13:57:18 +0100 Subject: fix for select_source + some tidying --- unofficial/modules/dieter/procedures/automatic | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'unofficial') diff --git a/unofficial/modules/dieter/procedures/automatic b/unofficial/modules/dieter/procedures/automatic index 2ccec68..3bdb306 100644 --- a/unofficial/modules/dieter/procedures/automatic +++ b/unofficial/modules/dieter/procedures/automatic @@ -7,32 +7,40 @@ phase_preparation () { # All things that need to be done manually first notify "A few manual things need to happen first..." - if ask_yesno "Do you want to (re)-configure your networking?" - then - #TODO: which function do i need here? - donetwork #configure network by using library - else - notify "Ok. skipping network config" - fi + execute worker runtime_network SVN_USERNAME=dieter ask_password svn #TODO: if user entered incorrect password, the install process will just fail.. SVN="svn --username $SVN_USERNAME --password $SVN_PASSWORD" SVN_BASE=https://192.168.1.2/svn/repos TARGET_HOST=desktop-a7n8x #TODO: prompt user for this, or let him pass it as cmdline argument (and check with svn info) - _accept_ssl_cert notify "**** From now on. everything will be automatic. Enjoy the show!" # not true: you need pass for dm_crypt + _accept_ssl_cert + execute worker select_source execute worker runtime_packages #TODO: i should have extra,community,.. (actually even yaourt/aur) available } + phase_finish () { execute worker configure_home } +worker_runtime_network () +{ + if ask_yesno "Do you want to (re)-configure your networking?" + then + #TODO: which function do i need here? + donetwork #configure network by using library + else + notify "Ok. skipping network config" + fi +} + + worker_prepare_disks () { modprobe dm-crypt || die_error "Cannot modprobe dm-crypt" -- cgit v1.2.2