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