Ignore:
Timestamp:
10/18/13 10:49:37 (9 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
5a1d1a0
Parents:
8d3682c
Message:

Add support to detect users time-zone as well as location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-sysinstall/backend-query/detect-country.sh

    re8cdd4d r688b57d  
    2828fetch -o "/tmp/.dR.$$" "http://web.pcbsd.org/getlocale.php" >/dev/null 2>/dev/null 
    2929COUNTRY="`grep CountryCode: /tmp/.dR.$$ | awk '{print $2}' | tr '[:upper:]' '[:lower:]' | sed 's| ||g'`" 
     30TZ="`grep TimeZone: /tmp/.dR.$$ | awk '{print $2}'`" 
    3031rm /tmp/.dR.$$ 
    3132if [ -z "$COUNTRY" ] ; then 
     
    3435fi 
    3536 
    36 echo "$COUNTRY" 
     37echo "$COUNTRY $TZ" 
    3738exit 0 
Note: See TracChangeset for help on using the changeset viewer.