diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-08-02 14:29:31 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-08-05 23:59:53 -0700 |
commit | 0eb9dd29b89449e2b9a10bf57f34c09a8bed40bc (patch) | |
tree | da4834c8a66765fe25d9d3dc9098969ea23a3cf1 /scripts/contrib | |
parent | bc6258f88705b0e7989089a8666ac5e5d2355823 (diff) | |
download | openembedded-core-contrib-0eb9dd29b89449e2b9a10bf57f34c09a8bed40bc.tar.gz |
scripts/contrib/mkefidisk.sh: fix bashism
Remove the function keyword.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-x | scripts/contrib/mkefidisk.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh index bcc2411ca22..af06b4bd5b9 100755 --- a/scripts/contrib/mkefidisk.sh +++ b/scripts/contrib/mkefidisk.sh @@ -28,14 +28,14 @@ BOOT_SIZE=20 # 5% for swap SWAP_RATIO=5 -function usage() { +usage() { echo "Usage: $(basename $0) DEVICE HDDIMG TARGET_DEVICE" 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 " TARGET_DEVICE: The device the target will boot from, e.g. /dev/mmcblk0" } -function image_details() { +image_details() { IMG=$1 echo "Image details" echo "=============" @@ -46,7 +46,7 @@ function image_details() { echo "" } -function device_details() { +device_details() { DEV=$1 BLOCK_SIZE=512 @@ -71,7 +71,7 @@ function device_details() { echo "" } -function unmount_device() { +unmount_device() { grep -q $DEVICE /proc/mounts if [ $? -eq 0 ]; then echo -n "$DEVICE listed in /proc/mounts, attempting to unmount..." |