Lines 1-12
Link Here
|
1 |
# Copyright 1999-2006 Gentoo Foundation |
1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
opts="-d" |
4 |
extra_commands="-d" |
5 |
[ "${INIT_HALT}" != "HALT" ] && opts="${opts}p" |
5 |
[ "${INIT_HALT}" != "HALT" ] && extra_commands="${extra_commands}p" |
6 |
[ "${RC_DOWN_INTERFACE}" = "yes" ] && opts="${opts}i" |
6 |
[ "${RC_DOWN_INTERFACE}" = "yes" ] && extra_commands="${extra_commands}i" |
7 |
[ "${RC_DOWN_HARDDISK}" = "yes" ] && opts="${opts}h" |
7 |
[ "${RC_DOWN_HARDDISK}" = "yes" ] && extra_commands="${extra_commands}h" |
8 |
|
8 |
|
9 |
/sbin/halt "${opts}" |
9 |
/sbin/halt "${extra_commands}" |
10 |
|
10 |
|
11 |
# hmm, if the above failed, that's kind of odd ... |
11 |
# hmm, if the above failed, that's kind of odd ... |
12 |
# so let's force a halt |
12 |
# so let's force a halt |