(cherry picked from commit cd93d643cb)
This commit is contained in:
themylogin
2021-01-19 22:06:20 +01:00
parent d257fb0753
commit cb552186d1

View File

@@ -29,6 +29,12 @@ post-install =
/usr/bin/touch /data/.hba_firmware_update
/usr/bin/touch /data/.ses_firmware_update
if ! dmidecode -s system-product-name | egrep "^(FREE|TRUE)NAS" > /dev/null; then
for i in `seq 0 3`; do
echo "hint.isp.$i.role=2" >> /boot/loader.conf.local
done
fi
post-upgrade =
has_alembic=$(echo "SELECT name FROM sqlite_master WHERE name = 'alembic_version'" | sqlite3 /data/freenas-v1.db)
if [ "$has_alembic" = "" ];
@@ -93,6 +99,12 @@ post-upgrade =
fi
rm -f /data/sentinels/unscheduled-reboot
if ! dmidecode -s system-product-name | egrep "^(FREE|TRUE)NAS" > /dev/null; then
for i in `seq 0 3`; do
echo "hint.isp.$i.role=2" >> /boot/loader.conf.local
done
fi
[Files]
exclude = /usr/local/www/freenasUI
/usr/local/www/data/docs