commit: 17ef205bc63a4e231dccee719394a7a8563f8c3f Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Tue Oct 6 18:31:43 2015 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Tue Oct 6 18:31:43 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=17ef205b
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 5641abe..f0bb313 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
