mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
installer: Enhance mountsource.sh script.
Searches for installation images on all partitions on external media. References bug #10020.
This commit is contained in:
@@ -36,15 +36,17 @@ done
|
||||
|
||||
# scan HD device part1 (usb sticks, etc.)
|
||||
for DEVICE in $(kudzu -qps -t 30 -c HD | grep device: | cut -d ' ' -f 2 | sort | uniq); do
|
||||
mount /dev/${DEVICE}1 /cdrom 2> /dev/null
|
||||
for DEVICEP in $(ls /dev/${DEVICE}? | sed "s/\/dev\///");do
|
||||
mount /dev/${DEVICEP} /cdrom 2> /dev/null
|
||||
if [ -n "$(ls /cdrom/ipfire-*.tlz 2>/dev/null)" ]; then
|
||||
echo -n ${DEVICE}1 > /tmp/source_device
|
||||
echo "Found tarball on ${DEVICE}1"
|
||||
echo -n ${DEVICEP} > /tmp/source_device
|
||||
echo "Found tarball on ${DEVICEP}"
|
||||
exit 0
|
||||
else
|
||||
echo "Found no tarballs on ${DEVICE}1 - SKIP"
|
||||
echo "Found no tarballs on ${DEVICEP} - SKIP"
|
||||
fi
|
||||
umount /cdrom 2> /dev/null
|
||||
done
|
||||
done
|
||||
|
||||
# scan HD device unpart (usb sticks, etc.)
|
||||
|
||||
Reference in New Issue
Block a user