Exit straight away if a called script is killed by a signal.
r57537
Colin Watson
15 years ago
5 | 5 |
while [ $code = 99 ]; do
|
6 | 6 |
ask_user /lib/partman/automatically_partition
|
7 | 7 |
code=$?
|
8 | |
if [ $code -ge 100 ]; then
|
|
8 |
if [ $code -ge 128 ] && [ $code -lt 192 ]; then
|
|
9 |
exit $code # killed by signal
|
|
10 |
elif [ $code -ge 100 ]; then
|
9 | 11 |
# 255: backup from subsidiary question; break and return to
|
10 | 12 |
# choose_partition menu
|
11 | |
# 100-254: attempt to skip the manual partitioner (from
|
12 | |
# display.d), which isn't appropriate if the manual partitioner
|
13 | |
# has already been displayed, so treat this exactly like
|
14 | |
# backup
|
|
13 |
# 100-127, 192-254: attempt to skip the manual partitioner
|
|
14 |
# (from display.d), which isn't appropriate if the manual
|
|
15 |
# partitioner has already been displayed, so treat this
|
|
16 |
# exactly like backup
|
15 | 17 |
exit 0
|
16 | 18 |
fi
|
17 | 19 |
done
|
5 | 5 |
and $default_filesystem{ } as an internal specifier. These are
|
6 | 6 |
equivalent to FS and filesystem{ FS } respectively, where FS is the
|
7 | 7 |
value of partman/default_filesystem. Requires partman-base 129.
|
|
8 |
- Exit straight away if a called script is killed by a signal.
|
8 | 9 |
|
9 | 10 |
-- Colin Watson <[email protected]> Sat, 10 Jan 2009 00:12:35 +0000
|
10 | 11 |
|