mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-08 17:39:24 +00:00
gpsd: fix gpsd init script
Replace return with exit where appropriate. Current init script uses return outside of functions resulting in warnings such as the following when using bash as interpreter: /etc/init.d/gpsd: line 98: return: can only `return' from a function or sourced script Signed-off-by: Johan Hovold <johan.hovold@lundinova.se> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -95,19 +95,19 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
echo "Starting $DESC" "$NAME"
|
echo "Starting $DESC" "$NAME"
|
||||||
do_start
|
do_start
|
||||||
return $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo "Stopping $DESC" "$NAME"
|
echo "Stopping $DESC" "$NAME"
|
||||||
do_stop
|
do_stop
|
||||||
return $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
;;
|
;;
|
||||||
reload|force-reload)
|
reload|force-reload)
|
||||||
echo "Reloading $DESC" "$NAME"
|
echo "Reloading $DESC" "$NAME"
|
||||||
do_reload
|
do_reload
|
||||||
return $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
#
|
#
|
||||||
@@ -119,11 +119,11 @@ case "$1" in
|
|||||||
case "$?" in
|
case "$?" in
|
||||||
0|1)
|
0|1)
|
||||||
do_start
|
do_start
|
||||||
return $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Failed to stop
|
# Failed to stop
|
||||||
return 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800"
|
|||||||
DEPENDS = "dbus-glib ncurses python libusb1"
|
DEPENDS = "dbus-glib ncurses python libusb1"
|
||||||
PROVIDES = "virtual/gpsd"
|
PROVIDES = "virtual/gpsd"
|
||||||
|
|
||||||
PR = "r2"
|
PR = "r3"
|
||||||
|
|
||||||
EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
|
EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
|
||||||
--x-libraries=${STAGING_LIBDIR} \
|
--x-libraries=${STAGING_LIBDIR} \
|
||||||
|
|||||||
Reference in New Issue
Block a user