1f5aa9
.\" Copyright 2009 Red Hat, Inc.
1f5aa9
.TH segregdomain 1 2014-11-19 "CRDA" "User Commands"
1f5aa9
.SH NAME
1f5aa9
setregdomain \- set regulatory domain based on country code
1f5aa9
.SH SYNOPSIS               
1f5aa9
.B setregdomain                  
1f5aa9
.SH DESCRIPTION
1f5aa9
setregdomain sets the regulatory domain for your system; it takes no
1f5aa9
arguments and is normally called via system script (eg, udev) rather
1f5aa9
than manually by an administrator.
1f5aa9
1f5aa9
The regulatory domain is represented by an ISO / IEC 3166-1 alpha2
1f5aa9
country code.  By default, setregdomain attempts to determine
1f5aa9
the appropriate country code by examining the target of the
1f5aa9
.IR /etc/localtime
1f5aa9
symbolic link.  That information is used to look-up the matching
1f5aa9
country code in the
1f5aa9
.IR /usr/share/zoneinfo/zone.tab
1f5aa9
file.
1f5aa9
1f5aa9
The country code look-up may fail.  This could be due to faulty
1f5aa9
or incomplete information in the
1f5aa9
.IR /usr/share/zoneinfo/zone.tab
1f5aa9
file, or the use of an actual file rather than a symlink for
1f5aa9
.IR /etc/localtime
1f5aa9
, among other possibilities.  In those cases the system
1f5aa9
administrator should define a COUNTRY environment variable in the
1f5aa9
.IR /etc/sysconfig/regdomain
1f5aa9
file.  This value will be used as the country code and the country
1f5aa9
code look-up will be skipped.
1f5aa9
.SH "FILES"
1f5aa9
.BR /etc/sysconfig/regdomain
1f5aa9
.BR /etc/localtime
1f5aa9
.BR /usr/share/zoneinfo/zone.tab
1f5aa9
.SH "SEE ALSO"
1f5aa9
.BR iw (1)