swapon/swapoff: -a returns 0 on ignored errors
Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
a3f326cd66
commit
c9a67133d6
@ -116,8 +116,7 @@ static int swap_enable_disable(char *device)
|
||||
}
|
||||
}
|
||||
|
||||
if (err) {
|
||||
if (!quiet)
|
||||
if (err && !quiet) {
|
||||
bb_simple_perror_msg(device);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user