|
Lines 12-17
export NOLOCALE=1
Link Here
|
| 12 |
|
12 |
|
| 13 |
WITHOUT_RC_COMPAT=1 |
13 |
WITHOUT_RC_COMPAT=1 |
| 14 |
|
14 |
|
|
|
15 |
MODFILE=/etc/sysconfig/badmodules |
| 16 |
|
| 15 |
# Source function library. |
17 |
# Source function library. |
| 16 |
. /etc/init.d/functions |
18 |
. /etc/init.d/functions |
| 17 |
|
19 |
|
|
Lines 50-55
action()
Link Here
|
| 50 |
return $rc |
52 |
return $rc |
| 51 |
} |
53 |
} |
| 52 |
|
54 |
|
|
|
55 |
removemodules() |
| 56 |
{ |
| 57 |
if [ -r "$MODFILE" ] ; then |
| 58 |
/bin/cat "$MODFILE" | while read ; do /sbin/rmmod -f "$REPLY" ; done |
| 59 |
fi |
| 60 |
} |
| 61 |
|
| 53 |
sendsigs() |
62 |
sendsigs() |
| 54 |
{ |
63 |
{ |
| 55 |
action_begin_msg 'Asking all remaining processes to terminate' |
64 |
action_begin_msg 'Asking all remaining processes to terminate' |
|
Lines 111-116
fi
Link Here
|
| 111 |
# Kill all processes |
120 |
# Kill all processes |
| 112 |
sendsigs |
121 |
sendsigs |
| 113 |
|
122 |
|
|
|
123 |
# Remove "bad" modules |
| 124 |
removemodules |
| 125 |
|
| 114 |
# Write to wtmp file before unmounting /var |
126 |
# Write to wtmp file before unmounting /var |
| 115 |
halt -w |
127 |
halt -w |
| 116 |
|
128 |
|