SPACE_NEEDED=$(apt-get--assume-no--allow-unauthenticated--fix-missing--no-install-recommendsinstallopenmediavaultpostfixdirmngr2>/dev/null | awk -F" " '/additional disk space will be used/ {print $4}')
SPACE_NEEDED=$(apt-get--assume-no--allow-unauthenticated--fix-missing--no-install-recommendsinstallopenmediavaultpostfixdirmngr2>/dev/null | awk -F" " '/additional disk space will be used/ {print $4}')
dialog --backtitle "$BACKTITLE" --title "No space left on device" --msgbox "\nOpenMediaVault needs ${SPACE_NEEDED} MB for installation while only ${SPACE_AVAIL} MB are available." 7 52
dialog --backtitle "$BACKTITLE" --title "No space left on device" --msgbox "\nOpenMediaVault needs ${SPACE_NEEDED} MB for installation while only ${SPACE_AVAIL} MB are available." 7 52
...
@@ -586,7 +587,7 @@ if [ ${SPACE_AVAIL} -lt ${SPACE_NEEDED} ]; then
...
@@ -586,7 +587,7 @@ if [ ${SPACE_AVAIL} -lt ${SPACE_NEEDED} ]; then
xmlstarlet ed -L -u "/config/services/afp/extraoptions" -v "$(echo -e "${AFP_Options}")" ${OMV_CONFIG_FILE}
xmlstarlet ed -L -u "/config/services/afp/extraoptions" -v "$(echo -e "${AFP_Options}")" ${OMV_CONFIG_FILE}
...
@@ -660,6 +661,16 @@ case ${BOARD} in
...
@@ -660,6 +661,16 @@ case ${BOARD} in
;;
;;
esac
esac
# Helios4 tweak
# Make mdadm display fault events on Fault LED
if [ ${BOARD} == "helios4" ]; then
if [ -f /usr/sbin/mdadm-fault-led.sh ]; then
sed -i -e "/HOMEHOST/a \\\n# Trigger Fault Led script when an event is detected\\nPROGRAM \/usr\/sbin\/mdadm-fault-led.sh" /usr/share/openmediavault/mkconf/mdadm
/usr/sbin/omv-mkconf mdadm
fi
fi
# Add a cron job to make NAS processes more snappy
# Add a cron job to make NAS processes more snappy