X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8436680884ad31001d12f022e737fc40cde7d43f..c7721234399dfc4c4cc8f61eca85568f4e314ac1:/package/base-files/files/etc/rc.common diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common index 2b7bf5a11..6ec88aef9 100755 --- a/package/base-files/files/etc/rc.common +++ b/package/base-files/files/etc/rc.common @@ -30,7 +30,7 @@ boot() { } shutdown() { - return 0 + stop } disable() { @@ -74,5 +74,5 @@ EOF ALL_COMMANDS="start stop reload restart boot shutdown enable disable enabled depends ${EXTRA_COMMANDS}" list_contains ALL_COMMANDS "$action" || action=help -[ "$action" == reload ] && action='eval reload "$@" || restart "$@" && :' +[ "$action" = "reload" ] && action='eval reload "$@" || restart "$@" && :' $action "$@"