From e6e7c85a095c32ea7766fc61f4a7138c1328ec4c Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Wed, 4 Oct 2017 11:26:32 +0300 Subject: qdb: remove bashishm from the init script The function keyword does not work in bourne shell Change-Id: I8de750c3b310e9dcc5f039cba389e5e816f003c3 Reviewed-by: Sami Nurmenniemi --- recipes-qt/b2qt-addons/qdbd/qdbd-init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh b/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh index bcc22a85..15981b06 100755 --- a/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh +++ b/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh @@ -46,7 +46,7 @@ GADGET_CONFIG=$CONFIGFS_PATH/usb_gadget/g1 . /etc/default/qdbd -function initialize_gadget() { +initialize_gadget() { # Initialize gadget with first UDC driver for driverpath in /sys/class/udc/*; do drivername=`basename $driverpath` @@ -55,7 +55,7 @@ function initialize_gadget() { done } -function disable_gadget() { +disable_gadget() { echo "" > $GADGET_CONFIG/UDC } -- cgit v1.2.3