rc.S: invoke testing hook for test versions only

- This is a potential security risk, which should not be active in public releases
This commit is contained in:
bergware
2023-10-08 12:05:08 +02:00
parent b260cc6cca
commit 69b5a886cb

View File

@@ -155,8 +155,9 @@ else
[[ $RETVAL -gt 0 ]] && abort "failed to remount $UNRAIDROOT r/w with return value $RETVAL"
fi
# invoke testing hook
if [[ -f /boot/config/rc.S.extra ]]; then
# invoke testing hook (only for test versions)
. /etc/unraid-version
if [[ -f /boot/config/rc.S.extra && $version =~ beta ]]; then
. /boot/config/rc.S.extra
fi
# and continue in separate script