sysctl: add seperate sysctl-x86_64.conf and move x86_64 only parameters

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2019-08-08 09:30:49 +02:00
parent c0f4a53034
commit 10dd2afd6d
7 changed files with 19 additions and 4 deletions

View File

@@ -24,6 +24,18 @@ case "${1}" in
sysctl -q -p
evaluate_retval
fi
arch=`uname -m`
case "${arch}" in
i?86 ) arch="i586";
;;
armv*) arch="armv5tel":
;;
esac
if [ -f "/etc/sysctl-${arch}.conf" ]; then
boot_mesg "Setting ${arch}-kernel runtime parameters..."
sysctl -q -p /etc/sysctl-${arch}.conf
evaluate_retval
fi
;;
status)