From 17ef205bc63a4e231dccee719394a7a8563f8c3f Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 6 Oct 2015 13:31:43 -0500 Subject: [PATCH] sysfs: use printf instead of echo to write to cgroup files This is needed for compatibility with musl and printf is also posix. X-Gentoo-Bug: 562334 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562334 --- init.d/sysfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 5641abe1..f0bb3131 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -116,7 +116,7 @@ mount_cgroups() mount -n -t cgroup \ -o none,${sysfs_opts},name=openrc,release_agent="$agent" \ openrc /sys/fs/cgroup/openrc - echo 1 > /sys/fs/cgroup/openrc/notify_on_release + printf 1 > /sys/fs/cgroup/openrc/notify_on_release fi yesno ${rc_controller_cgroups:-YES} && [ -e /proc/cgroups ] || return 0