File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ is_device_veyron() {
46
46
echo " False"
47
47
}
48
48
49
+ # returns the full path to the emmc device, in the form /dev/mmcblk#
49
50
get_emmc_devname () {
50
51
local devname=$( find /dev -name " mmcblk*boot0" | sed " s/boot0//" )
51
52
if [ -z " $devname " ]
@@ -55,6 +56,7 @@ get_emmc_devname() {
55
56
echo $devname
56
57
}
57
58
59
+ # returns the full path to the sd card device, in the form /dev/mmcblk#
58
60
get_sd_devname () {
59
61
local emmc=$( get_emmc_devname)
60
62
devname=$( find /dev -name " mmcblk*" ! -iwholename " *${emmc} *" ! -name " *mmcblk*p*" )
Original file line number Diff line number Diff line change @@ -61,15 +61,17 @@ is_device_veyron() {
61
61
echo " false"
62
62
}
63
63
64
+ # returns the full path to the emmc device, in the form /dev/mmcblk#
64
65
get_emmc_devname () {
65
66
local devname=$( find /dev -name " mmcblk*boot0" | sed " s/boot0//" )
66
67
if [ -z " $devname " ]
67
68
then
68
69
echo " Unknown device! can't determine emmc devname. Please file an issue with the output of fdisk -l if you get this on a supported device" ; exit 1;
69
70
fi
70
- echo $( basename $ devname)
71
+ echo $devname
71
72
}
72
73
74
+ # returns the full path to the sd card device, in the form /dev/mmcblk#
73
75
get_sd_devname () {
74
76
local emmc=$( get_emmc_devname)
75
77
devname=$( find /dev -name " mmcblk*" ! -iwholename " *${emmc} *" ! -name " *mmcblk*p*" )
@@ -329,7 +331,7 @@ external_partition() {
329
331
330
332
# simply expand to fill the current boot device
331
333
expand () {
332
- if [[ $BOOT_DEVICE == " /dev/ $( get_emmc_devname) " ]]
334
+ if [[ $BOOT_DEVICE == " $( get_emmc_devname) " ]]
333
335
then
334
336
echo " Can't expand to fill internal emmc, install will have done this already"
335
337
exit
You can’t perform that action at this time.
0 commit comments