This commit is contained in:
Patrick Schleizer 2019-12-21 04:09:35 -05:00
parent e6ea21c775
commit e7fd0dadb0
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -18,15 +18,15 @@ if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
fi
if [ -e /etc/remount-disable ] || [ -e /usr/local/etc/remount-disable ]; then
echo "$0: file /etc/remount-disable exists. Doing nothing."
echo "$0: INFO: file /etc/remount-disable exists. Doing nothing."
exit 0
fi
if [ -e /etc/noexec ] || [ -e /usr/local/etc/noexec ]; then
noexec=true
echo "$0: Will remount with noexec because file /etc/noexec exists."
echo "$0: INFO: Will remount with noexec because file /etc/noexec exists."
else
echo "$0: Will not remount with noexec because file /etc/noexec does not exist."
echo "$0: INFO: Will not remount with noexec because file /etc/noexec does not exist."
fi
mkdir --parents "/var/run/remount-secure"