lede/package/base-files/files/etc
Florian Eckert bd8d34909d 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>
2024-10-17 16:02:48 +08:00
..
board.d x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
hotplug.d/net x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
init.d base-files: LED/trigger/heartbeat: Add support for inversion 2024-10-17 15:39:53 +08:00
iproute2 Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
rc.button Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
sysctl.d base-files: enable BPF JIT kallsyms by default 2024-10-17 14:53:07 +08:00
uci-defaults x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
banner base-files: switch the banner to lede 2021-10-08 11:40:18 +08:00
banner.failsafe sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
device_info update source 2017-09-06 19:19:45 +08:00
diag.sh x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
ethers sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
fstab update source 2017-09-06 19:19:45 +08:00
group Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
hosts update source 2017-09-06 19:19:45 +08:00
inittab update source 2017-09-06 19:19:45 +08:00
openwrt_release fix some target VLAN switch untagged settings 2018-01-13 16:14:03 +08:00
openwrt_version update source 2017-09-06 19:19:45 +08:00
os-release update source 2017-09-06 19:19:45 +08:00
passwd update source 2017-09-06 19:19:45 +08:00
preinit update source 2017-09-06 19:19:45 +08:00
profile base-files: replace fgrep with grep -F 2022-12-08 17:36:23 +08:00
protocols update source 2017-09-06 19:19:45 +08:00
rc.common base-files: fix service_running check 2024-10-17 16:02:48 +08:00
rc.local x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
services update base-files sync with upstream 2018-10-14 12:59:07 +08:00
shadow base-file: remove password aging feature form /etc/shadow 2022-12-08 17:38:14 +08:00
shells update source 2017-09-06 19:19:45 +08:00
shinit x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
sysctl.conf base-files: create empty coremark file 2023-10-16 21:50:53 +08:00
sysupgrade.conf update source 2017-09-06 19:19:45 +08:00