slitaz-tools rev 1014
/sdt: tiny edits
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Feb 12 09:20:08 2017 +0000 (2017-02-12) |
parents | b62b418ee6e7 |
children | 86fbc888a1f6 |
files | sdt/README sdt/sdt |
line diff
1.1 --- a/sdt/README Sun Feb 12 00:04:41 2017 +0100 1.2 +++ b/sdt/README Sun Feb 12 09:20:08 2017 +0000 1.3 @@ -1,11 +1,11 @@ 1.4 SDT 1.5 ================================================================================ 1.6 1.7 -SDT stand for SliTaz Distro Tracker. A small set of tools to track and 1.8 -build a DB of SliTaz live and insall systems. 1.9 +SDT stands for SliTaz Distro Tracker. A small set of tools to track and 1.10 +build a DB of SliTaz live and install systems. 1.11 1.12 sdt: is the cmdline client 1.13 Web interface is on scn.slitaz.org/?sdt 1.14 1.15 -The CGI web interface work as a TinyCM plugin, code can be found in 1.16 +The CGI web interface works as a TinyCM plugin, code can be found in 1.17 slitaz-forge/scn HG repository.
2.1 --- a/sdt/sdt Sun Feb 12 00:04:41 2017 +0100 2.2 +++ b/sdt/sdt Sun Feb 12 09:20:08 2017 +0000 2.3 @@ -13,7 +13,7 @@ 2.4 2.5 get_geoloc() { 2.6 # freegeoip.net/{format}/{ip_or_hostname} 2.7 - # Exemple: wget freegeoip.net/csv/${ip} -O /tmp/geoloc 2.8 + # Example: wget freegeoip.net/csv/${ip} -O /tmp/geoloc 2.9 wget -q "${url}?sdt=geoloc" -O ${tmp} 2.10 ip=$(cat ${tmp}) && rm ${tmp} 2.11 wget -q freegeoip.net/csv/${ip} -O /tmp/geoloc 2.12 @@ -36,16 +36,16 @@ 2.13 boldify "SDT Stats" 2.14 separator 2.15 if wget -q -T 5 --spider ${url}; then 2.16 - echo "Tracker in online..." 2.17 + echo "Tracker is online..." 2.18 wget -q "${url}?sdt=raw" -O ${tmp} && cat ${tmp} && rm ${tmp} 2.19 else 2.20 - echo "Tracker in unreachable..." 2.21 + echo "Tracker is unreachable..." 2.22 fi 2.23 separator && newline ;; 2.24 send) 2.25 # Send stats to online DB 2.26 if [ -f "${HOME}/.cache/slitaz/sdt.log" ]; then 2.27 - echo "It look like you alrady sended this distro to the DB" 2.28 + echo "It looks like you already sent this distro to the DB" 2.29 exit 0 2.30 fi 2.31 user="$2" 2.32 @@ -56,7 +56,7 @@ 2.33 mode=$(get_mode) 2.34 cat << EOT 2.35 2.36 -$(boldify "Informations sent to SliTaz Distro Tracker") 2.37 +$(boldify "Information sent to the SliTaz Distro Tracker") 2.38 $(separator) 2.39 User : ${user} 2.40 Country : ${country} 2.41 @@ -65,7 +65,7 @@ 2.42 Running : ${mode} 2.43 EOT 2.44 separator && newline 2.45 - echo "Send these data to SliTaz Distro Tracker ? " 2.46 + echo "Send this data to SliTaz Distro Tracker ? " 2.47 echo -n "Press 'c' then ENTER to continue or any other key to quit: " 2.48 read anser && newline 2.49 if [ "$anser" != "c" ]; then