diff options
author | 2012-04-18 11:27:01 +0000 | |
---|---|---|
committer | 2012-04-18 19:19:26 +0200 | |
commit | d96d51e1eb4c086db781eb89b17d3b4ddbac7d13 (patch) | |
tree | b4176ac149b400626c5efa4aaf60f42aaf9a2c7f /meta-oe/recipes-navigation/gpsd/gpsd-2.96 | |
parent | 41f8ee83ffa3b6e4dae2148894c25df112ae028c (diff) | |
download | meta-openembedded-contrib-d96d51e1eb4c086db781eb89b17d3b4ddbac7d13.tar.gz |
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>
Diffstat (limited to 'meta-oe/recipes-navigation/gpsd/gpsd-2.96')
-rwxr-xr-x | meta-oe/recipes-navigation/gpsd/gpsd-2.96/gpsd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd-2.96/gpsd b/meta-oe/recipes-navigation/gpsd/gpsd-2.96/gpsd index 3687d24001..ba73dafb2c 100755 --- a/meta-oe/recipes-navigation/gpsd/gpsd-2.96/gpsd +++ b/meta-oe/recipes-navigation/gpsd/gpsd-2.96/gpsd @@ -95,19 +95,19 @@ case "$1" in start) echo "Starting $DESC" "$NAME" do_start - return $? + exit $? ;; stop) echo "Stopping $DESC" "$NAME" do_stop - return $? + exit $? ;; status) ;; reload|force-reload) echo "Reloading $DESC" "$NAME" do_reload - return $? + exit $? ;; restart) # @@ -119,11 +119,11 @@ case "$1" in case "$?" in 0|1) do_start - return $? + exit $? ;; *) # Failed to stop - return 1 + exit 1 ;; esac ;; |