base-files: fix status display command
authorAlexander Egorenkov <egorenar-dev@posteo.net>
Sun, 28 Mar 2021 08:45:08 +0000 (10:45 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Apr 2021 10:05:54 +0000 (12:05 +0200)
commiteaf19220b67d83c4c596fa21890abf5af9b4a610
tree1b3e28a8ff8785e21ad885ceac8521b54c4e24e0
parentab610f5af30bbdd937f4e8d93bb718b25b589d00
base-files: fix status display command

If service() is called w/o parameter then the status display for services
with multiple instances is incorrect. E.g. samba4 or wpad have 2 instances.

root@OpenWrt:~# /etc/init.d/samba4 status
running
root@OpenWrt:~# /etc/init.d/wpad status
running

Before change:
/etc/init.d/samba4                 enabled         stopped
/etc/init.d/wpad                   enabled         stopped

After change:
/etc/init.d/samba4                 enabled         running
/etc/init.d/wpad                   enabled         running

Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
(cherry picked from commit 9318f61556c5443eb66eec7e26715b00f0df86fc)
package/base-files/files/etc/shinit