openwrt/package/base-files/files
Florian Eckert dbe2a6343f base-files: fix service_running check
The following command checks if a instance of a service is running.
/etc/init.d/<service> running <instance>

 In the variable `$@`, which is passed to the function
`service_running`, the first argument is always the `instance` which
should be checked. Because all other variables where removed from `$@`
with `shift`.

Before this change the first argument of `$@` was set to the `$service`
Variable. So the function does not work as expected. The `$service`
variable was always the instance which should be checked. This is not
what we want.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Reviewed-by: Sungbo Eo <mans0n@gorani.run>
(cherry picked from commit dd681838d3)
2021-12-29 21:40:40 +01:00
..
bin base-files: fix typo in config_generate MAC check 2021-06-22 08:10:49 +02:00
etc base-files: fix service_running check 2021-12-29 21:40:40 +01:00
lib base-files: upgrade: fix efi partitions size calculation 2021-12-29 21:38:58 +01:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: wifi: tidy up the reconf code 2021-06-30 19:24:55 +02:00
usr base-files: validate firmware for compatibility with backup 2019-09-08 09:10:30 +02:00