mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 05:29:58 +00:00
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 (!quiet)
|
||||
bb_simple_perror_msg(device);
|
||||
if (err && !quiet) {
|
||||
bb_simple_perror_msg(device);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user