diff options
| author | Nico Dietrich | 2006-03-06 23:48:18 +0100 |
|---|---|---|
| committer | Nico Dietrich | 2006-03-06 23:48:18 +0100 |
| commit | c58d08c74a8458abae6413b3d9c8453368d0a298 (patch) | |
| tree | 310e89b6e489435cf94c247f8541d9cb1dac33c7 /installer/ld4-inst | |
| parent | some minor steps in ld4-inst (diff) | |
| download | core-c58d08c74a8458abae6413b3d9c8453368d0a298.tar.gz core-c58d08c74a8458abae6413b3d9c8453368d0a298.tar.xz core-c58d08c74a8458abae6413b3d9c8453368d0a298.zip | |
more installer progress
git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@90 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/ld4-inst')
| -rwxr-xr-x | installer/ld4-inst | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/installer/ld4-inst b/installer/ld4-inst index 92381450..39eab665 100755 --- a/installer/ld4-inst +++ b/installer/ld4-inst @@ -19,7 +19,7 @@ header() { precheck() { # check if running as root if [ "`id -u`" != "0" ]; then - echo "\nYou don't have the needed permission. Please rerun as root user!\n" + echo -e "\nYou don't have the needed permission. Please rerun as root user!\n" exit 1 fi @@ -27,7 +27,7 @@ precheck() { # rsync (server-side) which rsync >/dev/null if [ $? != 0 ] ; then - echo "\nYou need to install rsync on server side before installing!\n" + echo -e "\nYou need to install rsync on server side before installing!\n" exit 1 fi @@ -112,6 +112,7 @@ configure() { fi . .config + # TODO: bash doesnt allow concatenation of more than 2 logical expressions if ! [ -z $netmask -a -z $broadcast -a -z $netname -a -z $server ] ; then ipcfg=( `ifconfig eth0 | grep "inet addr" | sed -e "s,[a-zA-Z]*:,,g"` ) netmask=${ipcfg[3]} @@ -157,6 +158,7 @@ configure() { # ask for client distro ask "Client distribution: " client_distro ${client_distro} distro_check client_distro client_distro_ver + echo "Using ${client_distro} as client distribution" . config-${server_distro} @@ -185,8 +187,8 @@ configure() { copy_system() { rsync -avDe ssh --delete --exclude-from=distro-specs/exclude-${client_distro} ${rsyncsource} ${rootdir} # generate error message in case rsync didn't work and exit. - - # mksquashfs (background process) + + } @@ -230,7 +232,13 @@ setup_server () { create_initrd() { - # ../mkdxsinitrd + ../initrd/mkdxsinitrd -r ${rootdir} + + # generate links to kernel and initial ramdisk + ln -s ${rootdir}/boot/vmlinuz ${tftpbootdir} + ln -s ${rootdir}/boot/initrd ${tftpbootdir} + + # TODO: assure that vmlinuz and initrd exist!! } |
