summaryrefslogtreecommitdiff
path: root/src/profiles/profile-dieter
blob: 8580fd43f88436078d5fe88cca5e0dd5e55b4a25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
var_RUNTIME_PACKAGES="svn"

phase_preparation ()
{
	# All things that need to be done manually first
	notify "A few manual things need to happen first..."
	echo -n "Do you want to (re)-configure your networking? (y/*)"
	read answer
	if [ "$answer" = y ]
	then
		donetwork #configure network by using lib-archboot function.
	else
		echo "Ok. skipping network config"
	fi
	SVN_USERNAME=dieter
	stty -echo
	echo -n "Enter your svn password: "
	read SVN_PASSWORD
	stty echo 
	echo
	SVN="svn --username $SVN_USERNAME --password $SVN_PASSWORD"
	SVN_BASE=https://192.168.1.2/svn/repos
	TARGET_HOST=mbp-santa-rosa #TODO: prompt user for this, or let him pass it as cmdline argument

	#TODO: find something against svn's interactive ssl cert checking.  http://www.7php.net/svn-client-certificate-authentication-cache/ might help

	notify "**** From now on. everything will be automatic. Enjoy the show!"

        execute worker runtime_packages
}

worker_prepare_disks ()
{
	#TODO : use existing functions to do this + fix encryption and stuff
	true	
}

worker_package_list ()
{
	$SVN export $SVN_BASE/ddm-configs/$TARGET_HOST/package-list /home/arch/fifa/package-list
}


worker_configure_home ()
{
	#checkout from svn
	true
}


worker_install_bootloader ()
{
	install-grub /dev/sda
}