Separate functions

This commit is contained in:
Bob Mottram 2018-02-18 15:39:16 +00:00
parent 6fa15e8457
commit 873f5378e8
1 changed files with 11 additions and 7 deletions

View File

@ -94,16 +94,20 @@ EOF
}
beaglebone_flash() {
bbb_version=$1
# allow flash-kernel to work without valid /proc contents
# ** this doesn't *really* work, since there are too many checks
# that fail in an emulated environment! We'll have to do it by
# hand below anyway...
if [[ "$bbb_version" == 'wireless' ]]; then
export FK_MACHINE="TI AM335x BeagleBone Black Wireless"
else
export FK_MACHINE="TI AM335x BeagleBone Black"
fi
apt-get install -y flash-kernel
}
beaglebone_flash_wireless() {
# allow flash-kernel to work without valid /proc contents
# ** this doesn't *really* work, since there are too many checks
# that fail in an emulated environment! We'll have to do it by
# hand below anyway...
export FK_MACHINE="TI AM335x BeagleBone Black Wireless"
apt-get install -y flash-kernel
}
@ -252,7 +256,7 @@ case "$MACHINE" in
;;
beaglebonewifi)
beaglebone_setup_boot wireless
beaglebone_flash wireless
beaglebone_flash_wireless
beaglebone_repack_kernel wireless
enable_serial_console ttyO0
;;