version 1.10, 2009/04/21 16:08:57 |
version 1.11, 2009/09/24 16:45:48 |
Line 18 stop_cmd="swap1_stop" |
|
Line 18 stop_cmd="swap1_stop" |
|
# |
# |
swap1_start() |
swap1_start() |
{ |
{ |
|
# Treat exit status 2 from swapctl(8) as successful; it means |
|
# "no error, but no suitable swap devices were configured". |
|
# |
if ! checkyesno no_swap; then |
if ! checkyesno no_swap; then |
swapctl -A -t blk |
swapctl -A -t blk || [ $? = 2 ] |
fi |
fi |
} |
} |
|
|
|
|
{ |
{ |
if checkyesno swapoff || [ -n "$rc_force" ]; then |
if checkyesno swapoff || [ -n "$rc_force" ]; then |
echo "Removing block-type swap devices" |
echo "Removing block-type swap devices" |
swapctl -U -t blk |
swapctl -U -t blk || [ $? = 2 ] |
fi |
fi |
} |
} |
|
|