scripts/contrib/mkefidisk.sh: fix bashism

Remove the function keyword.

(From OE-Core rev: 0eb9dd29b89449e2b9a10bf57f34c09a8bed40bc)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chen Qi 2013-08-02 14:29:31 +08:00 committed by Richard Purdie
parent 4cff3defb5
commit d55d458734
1 changed files with 4 additions and 4 deletions

View File

@ -28,14 +28,14 @@ BOOT_SIZE=20
# 5% for swap # 5% for swap
SWAP_RATIO=5 SWAP_RATIO=5
function usage() { usage() {
echo "Usage: $(basename $0) DEVICE HDDIMG TARGET_DEVICE" echo "Usage: $(basename $0) DEVICE HDDIMG TARGET_DEVICE"
echo " DEVICE: The device to write the image to, e.g. /dev/sdh" echo " DEVICE: The device to write the image to, e.g. /dev/sdh"
echo " HDDIMG: The hddimg file to generate the efi disk from" echo " HDDIMG: The hddimg file to generate the efi disk from"
echo " TARGET_DEVICE: The device the target will boot from, e.g. /dev/mmcblk0" echo " TARGET_DEVICE: The device the target will boot from, e.g. /dev/mmcblk0"
} }
function image_details() { image_details() {
IMG=$1 IMG=$1
echo "Image details" echo "Image details"
echo "=============" echo "============="
@ -46,7 +46,7 @@ function image_details() {
echo "" echo ""
} }
function device_details() { device_details() {
DEV=$1 DEV=$1
BLOCK_SIZE=512 BLOCK_SIZE=512
@ -71,7 +71,7 @@ function device_details() {
echo "" echo ""
} }
function unmount_device() { unmount_device() {
grep -q $DEVICE /proc/mounts grep -q $DEVICE /proc/mounts
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo -n "$DEVICE listed in /proc/mounts, attempting to unmount..." echo -n "$DEVICE listed in /proc/mounts, attempting to unmount..."