]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/install+setup/install/mountdest.sh
3 echo "Scanning for possible destination drives"
7 for DEVICE
in $
(kudzu
-qps -t 30 -c HD
-b IDE |
grep device
: | cut
-d ' ' -f 2 |
sort |
uniq); do
9 mount
/dev
/${DEVICE}1 /harddisk
2> /dev
/null
10 if [ -e /harddisk
/ipfire-
*.tbz2
]; then
11 umount
/harddisk
2> /dev
/null
12 echo " is source drive"
15 umount
/harddisk
2> /dev
/null
16 echo -n "$DEVICE" > /tmp
/dest_device
17 echo " - yes, it is our destination"
22 # scan USB/SCSI devices
24 for DEVICE
in $
(kudzu
-qps -t 30 -c HD
-b SCSI |
grep device
: | cut
-d ' ' -f 2 |
sort |
uniq); do
25 echo -n "---> $DEVICE"
26 mount
/dev
/${DEVICE}1 /harddisk
2> /dev
/null
27 if [ -e /harddisk
/ipfire-
*.tbz2
]; then
28 umount
/harddisk
2> /dev
/null
29 echo " is source drive"
32 umount
/harddisk
2> /dev
/null
33 echo -n "$DEVICE" > /tmp
/dest_device
34 echo " - yes, it is our destination"
39 exit 10 # Nothing found