summaryrefslogtreecommitdiffstats
path: root/web/attachments/207725-check_by_ssh.patch
blob: be1503256eb9cca2a1b285bbc0dd67cfc21afff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- check_by_ssh.c	2006-10-18 20:25:16.000000000 -0400
+++ check_by_ssh_new.c	2006-12-18 10:51:04.000000000 -0500
@@ -166,6 +166,7 @@
 		{"proto2", no_argument, 0, '2'},
 		{"use-ipv4", no_argument, 0, '4'},
 		{"use-ipv6", no_argument, 0, '6'},
+		{"quiet", no_argument, 0, 'q'},
 		{0, 0, 0, 0}
 	};
 
@@ -177,7 +178,7 @@
 			strcpy (argv[c], "-t");
 
 	while (1) {
-		c = getopt_long (argc, argv, "Vvh1246ft:H:O:p:i:u:l:C:S:n:s:", longopts,
+		c = getopt_long (argc, argv, "Vvh1246fqt:H:O:p:i:u:l:C:S:n:s:", longopts,
 		                 &option);
 
 		if (c == -1 || c == EOF)
@@ -238,6 +239,7 @@
 		case '2':									/* 1 to force version 1, 2 to force version 2 */
 		case '4':									/* -4 for IPv4 */
 		case '6': 								/* -6 for IPv6 */
+		case 'q':                                                           /* Quiet ssh output to suppress motd */
 		case 'f':									/* fork to background */
 			asprintf (&comm, "%s -%c", comm, c);
 			break;
@@ -328,6 +330,8 @@
   printf ("    %s\n", _("tell ssh to use Protocol 1"));
   printf (" %s\n", "-2, --proto2");
   printf ("    %s\n", _("tell ssh to use Protocol 2"));
+  printf (" %s\n", "-q, --quiet");
+  printf ("    %s\n", _("tell ssh to use quiet mode"));  
   printf (" %s\n", "-S, --skiplines=n");
   printf ("    %s\n", _("Ignore first n lines on STDERR (to suppress a logon banner)"));
   printf (" %s\n", "-f");