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>
Sat, 3 Apr 2021 16:56:02 +0000 (18:56 +0200)
commit9318f61556c5443eb66eec7e26715b00f0df86fc
treee73c714c5c9dd27440d792746fb5c695cd9ebd94
parentaab3a04ce87c27996b7ce9ea306db8c6eed86941
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>
package/base-files/files/etc/shinit