diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-10-06 13:31:43 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-10-06 13:31:43 -0500 |
commit | 17ef205bc63a4e231dccee719394a7a8563f8c3f (patch) | |
tree | 5f52c37b70cd2fcd054876aa93983def09a982e7 /init.d/sysfs.in | |
parent | b20a1951adf9a705a903fb3047b7ef26c013103c (diff) |
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
Diffstat (limited to 'init.d/sysfs.in')
-rw-r--r-- | init.d/sysfs.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |