equal
deleted
inserted
replaced
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
19 # |
19 # |
20 # CDDL HEADER END |
20 # CDDL HEADER END |
21 # |
21 # |
22 |
22 |
|
23 # |
23 # Check hostname configuration as per the sendmail code. |
24 # Check hostname configuration as per the sendmail code. |
24 # |
25 # |
25 # See http://www.sendmail.org/sun-specific/migration.html#FQHN for details. |
26 |
26 # |
27 # |
27 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
28 # Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. |
28 # Use is subject to license terms. |
|
29 # |
29 # |
30 |
30 |
31 PATH=/bin:/usr/sbin |
31 PATH=/bin:/usr/sbin |
32 |
32 |
33 # If $1 has a ".", accept it and exit. |
33 # If $1 has a ".", accept it and exit. |
109 echo "to:\n" |
109 echo "to:\n" |
110 else |
110 else |
111 echo "adding the /etc/hosts entry:\n" |
111 echo "adding the /etc/hosts entry:\n" |
112 fi |
112 fi |
113 echo "$myipaddr $myhost $myhost.$suggested_domain $*" |
113 echo "$myipaddr $myhost $myhost.$suggested_domain $*" |
114 exit 0 |
114 exit 1 |
115 } |
115 } |
116 |
116 |
117 # Fall back to the NIS domain, minus the first label. If it is non-null, |
117 # Fall back to the NIS domain, minus the first label. If it is non-null, |
118 # use it but recommend against it. $2 is just informative, indicating whether |
118 # use it but recommend against it. $2 is just informative, indicating whether |
119 # we're checking the NIS domain. $3 is to pass on. |
119 # we're checking the NIS domain. $3 is to pass on. |