aboutsummaryrefslogtreecommitdiff
path: root/sh/init-functions.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-23 12:04:11 +0000
committerRoy Marples <roy@marples.name>2007-11-23 12:04:11 +0000
commitd81def80b00a3dbcb4f8980f4503c4d659b48a2a (patch)
tree64a5df4281620cacbc1f03838d42e88167886fc9 /sh/init-functions.sh
parentf077f179edaeb746b267421baa29ec751c38b713 (diff)
Move /etc/conf.d/rc to /etc/rc.conf.
Lowercase all configurable variables, non configurations remain uppercase. Replace rc_env_bool with rc_yesno. Split localmount info procfs (Linux) and dumpon, savecore (BSD)
Diffstat (limited to 'sh/init-functions.sh')
-rw-r--r--sh/init-functions.sh8
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