summaryrefslogtreecommitdiff
path: root/recipes-bsp/gpio-export
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/gpio-export')
-rw-r--r--recipes-bsp/gpio-export/files/apalis-imx6/gpio-export.sh5
-rw-r--r--recipes-bsp/gpio-export/files/gpio-export.service4
2 files changed, 7 insertions, 2 deletions
diff --git a/recipes-bsp/gpio-export/files/apalis-imx6/gpio-export.sh b/recipes-bsp/gpio-export/files/apalis-imx6/gpio-export.sh
index bdfdcab..010222c 100644
--- a/recipes-bsp/gpio-export/files/apalis-imx6/gpio-export.sh
+++ b/recipes-bsp/gpio-export/files/apalis-imx6/gpio-export.sh
@@ -9,6 +9,11 @@ case "$1" in
stop)
CTRL=/sys/class/gpio/unexport
;;
+
+ *)
+ echo "usage: '$0 start' '$0 stop'"
+ exit 1
+ ;;
esac
#Apalis GPIO - i.MX6 Ball name - GPIO#
diff --git a/recipes-bsp/gpio-export/files/gpio-export.service b/recipes-bsp/gpio-export/files/gpio-export.service
index 2dccc29..2dba716 100644
--- a/recipes-bsp/gpio-export/files/gpio-export.service
+++ b/recipes-bsp/gpio-export/files/gpio-export.service
@@ -5,8 +5,8 @@ DefaultDependencies=no
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/usr/bin/export-gpio.sh start
-ExecStop=/usr/bin/export-gpio.sh stop
+ExecStart=/usr/bin/gpio-export.sh start
+ExecStop=/usr/bin/gpio-export.sh stop
[Install]
WantedBy=basic.target