diff options
Diffstat (limited to 'sh/init-functions.sh')
-rw-r--r-- | sh/init-functions.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sh/init-functions.sh b/sh/init-functions.sh index ced84897..400a82b4 100644 --- a/sh/init-functions.sh +++ b/sh/init-functions.sh @@ -63,9 +63,13 @@ check_statedir() { #splash "critical" & echo eerror "To function properly, \"$1\" needs to exist." - if yesno ${RC_FORCE_AUTO}; then + if yesno ${rc_force_auto:-${RC_FORCE_AUTO}}; then eerror "Attempting to create \"$1\" for you ..." - mount -o remount,rw / + if [ "${RC_UNAME}" = "Linux" ]; then + mount -o remount,rw / + else + mount -u -o rw / + fi mkdir -p "$1" fi if [ ! -d "$1" ] ; then |