mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
gleich die Korrektur hinterher
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@794 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -14,23 +14,11 @@ for DEVICE in $(kudzu -qps -t 30 -c HD -b IDE | grep device: | cut -d ' ' -f 2 |
|
|||||||
else
|
else
|
||||||
umount /harddisk 2> /dev/null
|
umount /harddisk 2> /dev/null
|
||||||
echo -n "$DEVICE" > /tmp/dest_device
|
echo -n "$DEVICE" > /tmp/dest_device
|
||||||
echo " - yes, it is our destination"
|
echo "${DEVICE} - yes, it is our destination"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
mount /dev/${DEVICE}1 /cdrom 2> /dev/null
|
|
||||||
if [ ]; then
|
|
||||||
echo -n ${DEVICE} > /tmp/source_device
|
|
||||||
echo "Found Sources in ${DEVICE}"
|
|
||||||
else
|
|
||||||
umount /cdrom 2> /dev/null
|
|
||||||
echo "Found no Sources in ${DEVICE} skipping"
|
|
||||||
fi
|
|
||||||
umount /cdrom 2> /dev/null
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# scan USB/SCSI devices
|
# scan USB/SCSI devices
|
||||||
echo "--> USB/SCSI"
|
echo "--> USB/SCSI"
|
||||||
for DEVICE in $(kudzu -qps -t 30 -c HD -b SCSI | grep device: | cut -d ' ' -f 2 | sort | uniq); do
|
for DEVICE in $(kudzu -qps -t 30 -c HD -b SCSI | grep device: | cut -d ' ' -f 2 | sort | uniq); do
|
||||||
@@ -43,7 +31,7 @@ for DEVICE in $(kudzu -qps -t 30 -c HD -b SCSI | grep device: | cut -d ' ' -f 2
|
|||||||
else
|
else
|
||||||
umount /harddisk 2> /dev/null
|
umount /harddisk 2> /dev/null
|
||||||
echo -n "$DEVICE" > /tmp/dest_device
|
echo -n "$DEVICE" > /tmp/dest_device
|
||||||
echo " - yes, it is our destination"
|
echo "${DEVICE} - yes, it is our destination"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -61,7 +49,7 @@ for DEVICE in $(kudzu -qps -t 30 -c HD -b RAID | grep device: | cut -d ' ' -f 2
|
|||||||
else
|
else
|
||||||
umount /harddisk 2> /dev/null
|
umount /harddisk 2> /dev/null
|
||||||
echo -n "$DEVICE" > /tmp/dest_device
|
echo -n "$DEVICE" > /tmp/dest_device
|
||||||
echo " - yes, it is our destination"
|
echo "${DEVICE} - yes, it is our destination"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user