openwrt/package/base-files/files
Florian Eckert dd681838d3 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>
2021-12-04 09:39:11 +09:00
..
bin base-files: fix typo in config_generate MAC check 2021-06-14 22:29:49 +02:00
etc base-files: fix service_running check 2021-12-04 09:39:11 +09:00
lib base-files: add eMMC sysupgrade support 2021-12-02 20:42:58 +00: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-28 17:24:15 +02:00
usr base-files: validate firmware for compatibility with backup 2019-09-08 09:10:30 +02:00