From 1105c1ff94ab7994b9eb170779f2c1bc9df5bf69 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Fri, 13 Dec 2019 06:12:20 -0600 Subject: [PATCH] skip ionice on x86 boards --- install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install b/install index 617b34e..0b3b59b 100755 --- a/install +++ b/install @@ -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" ~