diff options
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!! } |