1 |
#!/bin/sh |
#!/bin/bash |
2 |
|
# $Id$ |
3 |
# |
# |
4 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.15 2008-06-28 00:37:45 niro Exp $ |
# Simple Installation Script |
5 |
# |
# merged from alxinstall-ng and mcore-installer |
|
# AutoSta_LX Installation Script |
|
6 |
# |
# |
7 |
# Niels Rogalla <niro@magellan-linux.de> |
# Niels Rogalla <niro@magellan-linux.de> |
|
# <rogalla@augusta-bochum.de> |
|
|
# |
|
|
# |
|
|
# Install Navigation Gui |
|
8 |
# |
# |
9 |
|
|
10 |
|
INSTALLER_LIBDIR="%LIBDIR%" |
11 |
|
|
12 |
|
# configuration |
13 |
|
if [ -e %SYSCONFDIR%/installer.conf ] |
14 |
|
then |
15 |
|
source %SYSCONFDIR%/installer.conf |
16 |
|
else |
17 |
|
die "/etc/installer.conf not found" |
18 |
|
fi |
19 |
|
|
20 |
#images: (get ${CDIMAGENAME}) |
#images: (get ${CDIMAGENAME}) |
21 |
source /mnt/cdrom/system/images.conf |
if [ -e /mnt/cdrom/system/images.conf ] |
22 |
|
then |
23 |
|
source /mnt/cdrom/system/images.conf |
24 |
|
else |
25 |
|
die "/mnt/cdrom/system/images.conf not found" |
26 |
|
fi |
27 |
|
|
28 |
#Includes |
# includes |
29 |
source /usr/lib/alxinstall-ng/functions/findhdd.sh > /dev/null |
source ${INSTALLER_LIBDIR}/functions/hwdetection.sh |
|
### bugfix ############################### |
|
|
cdromdev="$(echo ${cdromdev} | sed 's/ //')" |
|
|
######################################## |
|
30 |
|
|
31 |
### System/Config Version |
### System/Config Version |
32 |
VERSION="%VERSIONTAG%" |
VERSION="%VERSIONTAG%" |
33 |
TITLE="alxinstall-ng - ${VERSION}" |
TITLE="${DEFAULT_TITLE} - ${VERSION}" |
34 |
|
|
35 |
CDPATH="/mnt/cdrom" |
CDPATH="${DEFAULT_CDPATH}" |
36 |
INSTALLPATH="/mnt/magellan" |
INSTALLPATH="${DEFAULT_INSTALLPATH}" |
37 |
|
|
38 |
### WICHTIG: anzahl lines in der autosta_lx.tar.gz -1 |
### WICHTIG: anzahl lines in der autosta_lx.tar.gz -1 |
39 |
CURRENTLINE=0 |
CURRENTLINE=0 |
54 |
FORMFACTOR="desktop" |
FORMFACTOR="desktop" |
55 |
|
|
56 |
# target filesystem |
# target filesystem |
57 |
FORMAT_FILESYSTEM="ext4" |
FORMAT_FILESYSTEM="${DEFAULT_FILESYSTEM}" |
58 |
|
|
59 |
################################################# |
################################################# |
60 |
# DIALOG BOXEN # |
# DIALOG BOXEN # |