Lines 19-26
start()
Link Here
|
19 |
# We need the do_unmount function |
19 |
# We need the do_unmount function |
20 |
. "$RC_LIBEXECDIR"/sh/rc-mount.sh |
20 |
. "$RC_LIBEXECDIR"/sh/rc-mount.sh |
21 |
eindent |
21 |
eindent |
22 |
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs= |
22 |
|
23 |
m="$m|/bin|/sbin|/lib|/libexec" |
23 |
# Bug 381783 |
|
|
24 |
local rc_svcdir=$(echo $RC_SVCDIR | sed 's:/lib\(32\|64\)\?/:/lib(32|64)?/:g') |
25 |
|
26 |
local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${rc_svcdir}" x= fs= |
27 |
m="$m|/bin|/sbin|/lib(32|64)?|/libexec" |
24 |
# RC_NO_UMOUNTS is an env var that can be set by plugins |
28 |
# RC_NO_UMOUNTS is an env var that can be set by plugins |
25 |
local IFS="$IFS:" |
29 |
local IFS="$IFS:" |
26 |
for x in $no_umounts $RC_NO_UMOUNTS; do |
30 |
for x in $no_umounts $RC_NO_UMOUNTS; do |
Lines 34-40
start()
Link Here
|
34 |
[ -n "$fs" ] && fs="^($fs)$" |
38 |
[ -n "$fs" ] && fs="^($fs)$" |
35 |
do_unmount "umount -r" \ |
39 |
do_unmount "umount -r" \ |
36 |
--skip-point-regex "$m" \ |
40 |
--skip-point-regex "$m" \ |
37 |
${fs:+--skip-fstype-regex} $fs --nonetdev |
41 |
"${fs:+--skip-fstype-regex}" $fs --nonetdev |
38 |
eoutdent |
42 |
eoutdent |
39 |
eend $? |
43 |
eend $? |
40 |
} |
44 |
} |
41 |
- |
|
|