187 |
hwtmp="/tmp/hwtmp.sh" |
hwtmp="/tmp/hwtmp.sh" |
188 |
fi |
fi |
189 |
|
|
190 |
[[ ! -z ${installdevs} ]] && installdevs="" |
run_hardware_detection_disks |
191 |
|
|
192 |
echo "dialog \\" > ${hwtmp} |
echo "dialog \\" > ${hwtmp} |
193 |
echo "--backtitle \"${TITLE}\" \\" >> ${hwtmp} |
echo "--backtitle \"${TITLE}\" \\" >> ${hwtmp} |
197 |
echo "--msgbox \"Gefundene Hardware:\n\n \\" >> ${hwtmp} |
echo "--msgbox \"Gefundene Hardware:\n\n \\" >> ${hwtmp} |
198 |
echo " Festplatten:\n \\" >> ${hwtmp} |
echo " Festplatten:\n \\" >> ${hwtmp} |
199 |
|
|
200 |
if [[ ! -z ${scsidisks} ]] |
if [[ ! -z ${ALL_DISKS} ]] |
201 |
then |
then |
202 |
for i in ${scsidisks} |
for i in ${ALL_DISKS} |
203 |
do |
do |
204 |
if [[ ${i} != ${cdromdev} ]] |
echo " \\Z3${i}\\Zn\n \\" >> ${hwtmp} |
|
then |
|
|
echo " \\Z7SCSI: \\Z3${i}\\Zn\n \\" >> ${hwtmp} |
|
|
installdevs="${installdevs} ${i}" |
|
|
fi |
|
205 |
done |
done |
206 |
fi |
fi |
207 |
|
|
208 |
if [[ ! -z ${idedisks} ]] |
if [[ ! -z ${ALL_CDROMS} ]] |
209 |
then |
then |
210 |
for i in ${idedisks} |
echo " \n \\" >> ${hwtmp} |
211 |
|
echo " CDROM Laufwerke:\n \\" >> ${hwtmp} |
212 |
|
for i in ${ALL_CDROMS} |
213 |
do |
do |
214 |
if [[ ${i} != ${cdromdev} ]] |
echo " \\Z3${i}\\Zn\n \\" >> ${hwtmp} |
|
then |
|
|
echo " \\Z7IDE: \\Z3${i}\\Zn\n \\" >> ${hwtmp} |
|
|
installdevs="${installdevs} ${i}" |
|
|
fi |
|
215 |
done |
done |
216 |
fi |
fi |
217 |
|
|
|
if [[ ! -z ${cdromdev} ]] |
|
|
then |
|
|
echo " \n \\" >> ${hwtmp} |
|
|
echo " \\Z7andere Laufwerke:\n \\" >> ${hwtmp} |
|
|
echo " CDROM: \\Z3${cdromdev}\\Zn\n \\" >> ${hwtmp} |
|
|
fi |
|
|
|
|
218 |
# other devices |
# other devices |
219 |
run_hardware_detection |
run_hardware_detection |
220 |
case "${SPECIALDEVICE}" in |
case "${SPECIALDEVICE}" in |
354 |
fi |
fi |
355 |
} |
} |
356 |
|
|
357 |
|
run_hardware_detection_disks() |
358 |
|
{ |
359 |
|
local bootdev |
360 |
|
|
361 |
|
# all disks but exclude ramdisks |
362 |
|
export ALL_DISKS=$(get_hwinfo disk | sed '/\/dev\/ram[0-9].*/d') |
363 |
|
# remove the boot device from ALL_DISKS if it was an usbstick |
364 |
|
if [[ $(grep '[[:space:]]/mnt/cdrom[[:space:]]' /proc/mounts | cut -d' ' -f3) != iso9660 ]] |
365 |
|
then |
366 |
|
bootdev="$(grep '[[:space:]]/mnt/cdrom[[:space:]]' /proc/mounts | cut -d' ' -f1 | sed 's:[0-9]::g')" |
367 |
|
export ALL_DISKS=$(echo "${ALL_DISKS}" | grep -v "${bootdev}") |
368 |
|
fi |
369 |
|
export ALL_CDROMS="$(get_hwinfo cdrom)" |
370 |
|
} |
371 |
|
|
372 |
dialog_setup_hdd_create_partitions() |
dialog_setup_hdd_create_partitions() |
373 |
{ |
{ |
374 |
dialog \ |
dialog \ |