Skip to content

Commit

Permalink
od: Fix a couple more exits in init scripts
Browse files Browse the repository at this point in the history
`exit` exits `rcS` instead of the sourced script.

Signed-off-by: Gleb Mazovetskiy <[email protected]>
  • Loading branch information
glebm authored and pcercuei committed Dec 16, 2022
1 parent 95af42b commit 85551fd
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions board/opendingux/gcw0/overlay/etc/init.d/S50bluetooth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@ case "$1" in
echo "Usage: $0 {start|stop}"
exit 1
esac

exit $?
2 changes: 0 additions & 2 deletions board/opendingux/gcw0/overlay/etc/init.d/S90volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ case "$1" in
echo "Usage: $0 {start|stop}"
exit 1
esac

exit $?
2 changes: 0 additions & 2 deletions board/opendingux/lepus/overlay/etc/init.d/S90volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ case "$1" in
echo "Usage: $0 {start|stop}"
exit 1
esac

exit $?
2 changes: 1 addition & 1 deletion board/opendingux/target_skeleton/etc/init.d/S09swap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SWAP_COMPRESSOR=lzo-rle
# User overrides.
[ -r /usr/local/etc/swap.conf ] && . /usr/local/etc/swap.conf

[ $SWAP_PERCENT_MEM -gt 0 ] || exit 0
[ $SWAP_PERCENT_MEM -gt 0 ] || return 0

psplash_write "Setup swap..."

Expand Down
2 changes: 0 additions & 2 deletions board/opendingux/target_skeleton/etc/init.d/S90brightness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ case "$1" in
echo "Usage: $0 {start|stop}"
exit 1
esac

exit $?

0 comments on commit 85551fd

Please sign in to comment.