base-files: fix sysctl "&>-" bad file descriptor

echo bug >&-
sh: write error: Bad file descriptor

Signed-off-by: John Kirk <johnskirk@proton.me>
This commit is contained in:
John Kirk 2024-12-10 18:21:17 +01:00
parent ff5f77ecdd
commit ff617c1025

View File

@ -39,6 +39,6 @@ apply_defaults() {
start() {
apply_defaults
for CONF in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
[ -f "$CONF" ] && sysctl -e -p "$CONF" >&-
[ -f "$CONF" ] && sysctl -q -e -p "$CONF"
done
}