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,9 +116,8 @@ static int swap_enable_disable(char *device)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err) {
|
if (err && !quiet) {
|
||||||
if (!quiet)
|
bb_simple_perror_msg(device);
|
||||||
bb_simple_perror_msg(device);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user