Lines 151-158
Link Here
|
151 |
# Don't unmount anything for VPS systems |
151 |
# Don't unmount anything for VPS systems |
152 |
[ "${RC_SYS}" = "VPS" ] && return 0 |
152 |
[ "${RC_SYS}" = "VPS" ] && return 0 |
153 |
|
153 |
|
154 |
# We never unmount / or /dev or $RC_LIBDIR |
154 |
# We never unmount / or /dev or $RC_SVCDIR |
155 |
local x= no_umounts="/|/dev|${RC_SVCDIR}" |
155 |
local x= no_umounts="/|/dev|/dev/.*|${RC_SVCDIR}" |
156 |
|
156 |
|
157 |
# NO_UMOUNTS is taken from /etc/conf.d/localmount |
157 |
# NO_UMOUNTS is taken from /etc/conf.d/localmount |
158 |
# RC_NO_UMOUNTS is taken from /etc/conf.d/rc and can also be |
158 |
# RC_NO_UMOUNTS is taken from /etc/conf.d/rc and can also be |
Lines 169-175
Link Here
|
169 |
fi |
169 |
fi |
170 |
|
170 |
|
171 |
if [ "${RC_UNAME}" = "Linux" ] ; then |
171 |
if [ "${RC_UNAME}" = "Linux" ] ; then |
172 |
no_umounts="${no_umounts}|/dev/pts|/dev/shm|/proc|/proc/.*|/sys" |
172 |
no_umounts="${no_umounts}|/proc|/proc/.*|/sys|/sys/.*" |
173 |
fi |
173 |
fi |
174 |
no_umounts="^(${no_umounts})$" |
174 |
no_umounts="^(${no_umounts})$" |
175 |
|
175 |
|