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