package/procps-ng: use logger in S02sysctl only if it is available
authorCarlos Santos <unixmania@gmail.com>
Sun, 29 Mar 2020 23:49:24 +0000 (20:49 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 30 Mar 2020 05:24:49 +0000 (07:24 +0200)
commit4dbea48248b6661e8ba0544b76dd3ebbe4dc8b5d
treece4d811af2dba2d8fbe162cfbedd2b66eb6cca5f
parent16de37d96ba553f74622e72f173a71db8822b5a9
package/procps-ng: use logger in S02sysctl only if it is available

The script used the logger utility unconditionally but it may not exist
(e.g. busybox-minimal.config is used and BR2_PACKAGE_UTIL_LINUX_LOGGER
is not selected).

Declare two functions to perform the operation, run_logger and run_std,
and use the appropriate one, depending on the existence of logger.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/procps-ng/S02sysctl