summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-08-02 06:29:31 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-06 11:39:52 (GMT)
commitd55d45873439c6eafa5dc33a5dd143cec93ef6d6 (patch)
treeb9f90704b7b03e5dc5e0dca9d1176c5970f74977 /scripts
parent4cff3defb545643132b7233fcffb3fedc1bf182b (diff)
downloadpoky-d55d45873439c6eafa5dc33a5dd143cec93ef6d6.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/contrib/mkefidisk.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index bcc2411..af06b4b 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -28,14 +28,14 @@ BOOT_SIZE=20
28# 5% for swap 28# 5% for swap
29SWAP_RATIO=5 29SWAP_RATIO=5
30 30
31function usage() { 31usage() {
32 echo "Usage: $(basename $0) DEVICE HDDIMG TARGET_DEVICE" 32 echo "Usage: $(basename $0) DEVICE HDDIMG TARGET_DEVICE"
33 echo " DEVICE: The device to write the image to, e.g. /dev/sdh" 33 echo " DEVICE: The device to write the image to, e.g. /dev/sdh"
34 echo " HDDIMG: The hddimg file to generate the efi disk from" 34 echo " HDDIMG: The hddimg file to generate the efi disk from"
35 echo " TARGET_DEVICE: The device the target will boot from, e.g. /dev/mmcblk0" 35 echo " TARGET_DEVICE: The device the target will boot from, e.g. /dev/mmcblk0"
36} 36}
37 37
38function image_details() { 38image_details() {
39 IMG=$1 39 IMG=$1
40 echo "Image details" 40 echo "Image details"
41 echo "=============" 41 echo "============="
@@ -46,7 +46,7 @@ function image_details() {
46 echo "" 46 echo ""
47} 47}
48 48
49function device_details() { 49device_details() {
50 DEV=$1 50 DEV=$1
51 BLOCK_SIZE=512 51 BLOCK_SIZE=512
52 52
@@ -71,7 +71,7 @@ function device_details() {
71 echo "" 71 echo ""
72} 72}
73 73
74function unmount_device() { 74unmount_device() {
75 grep -q $DEVICE /proc/mounts 75 grep -q $DEVICE /proc/mounts
76 if [ $? -eq 0 ]; then 76 if [ $? -eq 0 ]; then
77 echo -n "$DEVICE listed in /proc/mounts, attempting to unmount..." 77 echo -n "$DEVICE listed in /proc/mounts, attempting to unmount..."