Lines 37-52
stop()
Link Here
|
37 |
local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}" |
37 |
local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}" |
38 |
no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec" |
38 |
no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec" |
39 |
# RC_NO_UMOUNTS is an env var that can be set by plugins |
39 |
# RC_NO_UMOUNTS is an env var that can be set by plugins |
40 |
local OIFS=$IFS SIFS=${IFS-y} |
40 |
local IFS=$IFS: |
41 |
IFS=$IFS: |
|
|
42 |
for x in $no_umounts $RC_NO_UMOUNTS; do |
41 |
for x in $no_umounts $RC_NO_UMOUNTS; do |
43 |
no_umounts_r="$no_umounts_r|$x" |
42 |
no_umounts_r="$no_umounts_r|$x" |
44 |
done |
43 |
done |
45 |
if [ "$SIFS" = y ]; then |
|
|
46 |
IFS=$OIFS |
47 |
else |
48 |
unset IFS |
49 |
fi |
50 |
|
44 |
|
51 |
if [ "$RC_UNAME" = Linux ]; then |
45 |
if [ "$RC_UNAME" = Linux ]; then |
52 |
no_umounts_r="$no_umounts_r|/proc|/proc/.*|/run|/sys|/sys/.*" |
46 |
no_umounts_r="$no_umounts_r|/proc|/proc/.*|/run|/sys|/sys/.*" |