]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/contrib/mkefidisk.sh: fix bashism
authorChen Qi <Qi.Chen@windriver.com>
Fri, 2 Aug 2013 06:29:31 +0000 (14:29 +0800)
committerSaul Wold <sgw@linux.intel.com>
Tue, 6 Aug 2013 06:59:53 +0000 (23:59 -0700)
Remove the function keyword.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
scripts/contrib/mkefidisk.sh

index bcc2411ca22b0ae7371f0f69e6d24c1cdd1f68d9..af06b4bd5b902a0dd1817a283318ea918c1fd6da 100755 (executable)
@@ -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..."