Update install.sh

pull/428/head
sfeakes 2025-05-17 14:48:10 -05:00
parent d182784ae2
commit dd7161ef08
1 changed files with 9 additions and 7 deletions

View File

@ -110,6 +110,7 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi
if [ "$_nosystemd" -eq $FALSE ]; then
if [[ $(mount | grep " / " | grep "(ro,") ]]; then
if mount / -o remount,rw &>/dev/null; then
# can mount RW.
@ -121,6 +122,7 @@ if [[ $(mount | grep " / " | grep "(ro,") ]]; then
exit 1
fi
fi
fi
# Figure out what system we are on and set correct binary.
# If we have been called from make, this is a custom build and install, so ignore check.