also support /usr/local/etc/remount-disable and /usr/local/etc/noexec

This commit is contained in:
Patrick Schleizer 2019-12-07 01:53:33 -05:00
parent 0afcc5e798
commit 5a4eda0d05
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -15,12 +15,12 @@ if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
source /usr/lib/helper-scripts/pre.bsh
fi
if [ -e /etc/remount-disable ]; then
if [ -e /etc/remount-disable ] || [ -e /usr/local/etc/remount-disable ]; then
echo "$0: file /etc/remount-disable exists. Doing nothing."
exit 0
fi
if [ -e /etc/noexec ]; then
if [ -e /etc/noexec ] || [ -e /usr/local/etc/noexec ]; then
noexec=true
echo "$0: Will remount with noexec because file /etc/noexec exists."
else