skip ionice on x86 boards

This commit is contained in:
Aaron Murray 2019-12-13 06:12:20 -06:00
parent c7202b574d
commit 1105c1ff94

View File

@ -45,6 +45,7 @@ if [ ! -f "/usr/bin/lsb_release" ]; then
apt-get --yes --no-install-recommends install lsb-release
fi
arch="$(dpkg --print-architecture)"
codename="$(lsb_release --codename --short)"
distributor="$(lsb_release --id --short)"
@ -242,6 +243,11 @@ for service in samba flashmemory ssh ${ntp} timezone monit rrdcached collectd cp
${confCmd} ${service}
done
if [[ "${arch}" == "amd64" ]] || [[ "${arch}" == "i386" ]]; then
# skip ionice on x86 boards
exit 0
fi
# Add a cron job to make NAS processes more snappy and silence rsyslog
cat << EOF > /etc/rsyslog.d/omv-armbian.conf
:msg, contains, "do ionice -c1" ~