ba8ac39d003036705a06eb01da506b019c66974b
[rrq/maintain_lilo.git] / debian / patches / 02_lilo-version-ubuntu.patch
1 Package:     lilo
2 Subject:     add lilo version for Ubuntu
3 Author:      Joachim Wiedorn <ad_debian at joonet.de>
4 Forwarded:   no
5 Last-Update: 2013-06-07
6
7 ---
8
9 diff -urN s01/src/crt.S s02/src/crt.S
10 --- s01/src/crt.S       2010-11-01 16:32:09.000000000 +0100
11 +++ s02/src/crt.S       2011-05-06 17:26:25.856704412 +0200
12 @@ -693,7 +693,7 @@
13  
14  
15  str_title:
16 -       .ascii  "GNU/Linux - "
17 +       .ascii  "Ubuntu - "
18         .ascii  "LILO "
19  #ifdef LCF_VERSION
20         .ascii  SA(VERSION_MAJOR)
21 diff -urN s01/src/lilo.c s02/src/lilo.c
22 --- s01/src/lilo.c      2011-04-09 18:40:33.000000000 +0200
23 +++ s02/src/lilo.c      2011-05-06 17:28:53.484698617 +0200
24 @@ -824,7 +824,8 @@
25          else
26            printf(" (released %s)\n", VERSION_DATE);
27          if (version && verbose<=0) {
28 -          /* exit if user asks for version and no verbose */
29 +          /* user asks for version without verbose */
30 +          printf ("(Ubuntu GNU/Linux)\n");
31            return 0;
32          }
33          printf("  * Copyright (C) 1992-1998 Werner Almesberger  (until v20)\n"
34 @@ -847,6 +848,7 @@
35            }
36  #endif
37          }
38 +        printf("Ubuntu GNU/Linux\n");
39          printf("\n");
40          if (version) {
41              if (verbose>=2) configuration();