Lines 37-51
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 |
OIFS=$IFS SIFS=${IFS-y} |
40 |
local OIFS=$IFS SIFS=${IFS-n} |
41 |
IFS=$IFS: |
41 |
IFS=$IFS: |
42 |
for x in $no_umounts $RC_NO_UMOUNTS; do |
42 |
for x in $no_umounts $RC_NO_UMOUNTS; do |
43 |
no_umounts_r="$no_umounts_r|$x" |
43 |
no_umounts_r="$no_umounts_r|$x" |
44 |
done |
44 |
done |
45 |
if [ "$SIFS" = y ]; then |
45 |
if [ "$SIFS" = n ]; then |
46 |
IFS=$OIFS |
|
|
47 |
else |
48 |
unset IFS |
46 |
unset IFS |
|
|
47 |
else |
48 |
IFS=$OIFS |
49 |
fi |
49 |
fi |
50 |
|
50 |
|
51 |
if [ "$RC_UNAME" = Linux ]; then |
51 |
if [ "$RC_UNAME" = Linux ]; then |