709e20c70d8a259994596c907fc0cad73b4428f2
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / rng-tools / 0001-rngd-exit-code.patch
1 Exit with a special value when RNG modules are not available
2
3 Instead of returning with an error, exit with a special value when the
4 RNG kernel modules are not present in the kernel. This is not really a
5 hard failure.
6
7 Patch borrowed from Fedora, at
8 http://pkgs.fedoraproject.org/cgit/rng-tools.git/tree/rngd-exit-code.patch.
9
10 Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
11
12 --- a/rngd.c
13 +++ b/rngd.c
14 @@ -319,7 +319,7 @@ int main(int argc, char **argv)
15                         message(LOG_DAEMON|LOG_ERR,
16                                 "Maybe RNG device modules are not loaded\n");
17                 }
18 -               return 1;
19 +               return 66;
20         }
21  
22         if (arguments->verbose) {