From 4c11a424dc5cc3376a25486cc0628dbce732557c Mon Sep 17 00:00:00 2001 From: horse69 Date: Tue, 11 Sep 2012 23:37:50 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/freetel/code@678 01035d8c-6547-0410-b346-abe4f91aad63 --- mini-asterisk-gui2/admin.js | 4 +- mini-asterisk-gui2/devel notes.txt | 66 +++++++++++++++++++++++++++- mini-asterisk-gui2/install notes.txt | 3 +- 3 files changed, 69 insertions(+), 4 deletions(-) diff --git a/mini-asterisk-gui2/admin.js b/mini-asterisk-gui2/admin.js index 76a8ccad..b64259c6 100644 --- a/mini-asterisk-gui2/admin.js +++ b/mini-asterisk-gui2/admin.js @@ -73,7 +73,7 @@ function onClickUpgrade() { function onClickReset() { - downloadUrl("/cgi-bin/reset.cgi",OnResetReturn); + downloadUrl("/cgi-bin/reset.cgi?arg=",OnResetReturn); // if not x86 (developement environment) // cp /etc/asterisk/extensions.conf.def /etc/asterisk/extensions.conf @@ -86,7 +86,7 @@ function onClickReset() { function onClickRestart() { - downloadUrl("/cgi-bin/restart.cgi",OnRestartReturn); + downloadUrl("/cgi-bin/restart.cgi?arg=",OnRestartReturn); // if not x86 (developement environment) // reboot diff --git a/mini-asterisk-gui2/devel notes.txt b/mini-asterisk-gui2/devel notes.txt index 0baca8f2..8bebcc65 100644 --- a/mini-asterisk-gui2/devel notes.txt +++ b/mini-asterisk-gui2/devel notes.txt @@ -154,8 +154,72 @@ Bad line/Bad HW detection ntp page - look at compiling ntp into an installable package. + ipkg install ntp setting times. + Configuring ntp? + + root:~> ipkg files ntp + Package ntp (4.1.1-1) is installed on root and has the following files: + /bin/ntpd + /bin/ntpdate + /etc/init.d/ntp + /usr/doc/ntp.txt + + NOTES: + + 1. Set the /etc/TZ file for your timezone + + 2. The TZ env variable in your shell will set the current + time zone. This gets set automatically via /etc/profile + for console and ssh logins, but for some reason it is not + set in telnet logins (maybe because they currently don't + have a proper login). + + 3. List of magic TZ codes here (thanks Mike Taht): + http://wiki.openwrt.org/OpenWrtDocs/Configuration + (search on TZ) + + 4. It's a really good idea to install the login ipkg (ipkg install + login), otherwise TZ doesn't get set correctly at the start of + each telnet session. Without login TZ gets set only on the + serial console and ssh logins. + + http://souptonuts.sourceforge.net/readme_working_with_time.html + + Hours From Greenwich Mean Time (GMT) Value + + 0 GMT Greenwich Mean Time + +1 ECT European Central Time + +2 EET European Eastern Time + +2 ART + +3 EAT Saudi Arabia + +3.5 MET Iran + +4 NET + +5 PLT West Asia + +5.5 IST India + +6 BST Central Asia + +7 VST Bangkok + +8 CTT China + +9 JST Japan + +9.5 ACT Central Australia + +10 AET Eastern Australia + +11 SST Central Pacific + +12 NST New Zealand + -11 MIT Samoa + -10 HST Hawaii + -9 AST Alaska + -8 PST Pacific Standard Time + -7 PNT Arizona + -7 MST Mountain Standard Time + -6 CST Central Standard Time + -5 EST Eastern Standard Time + -5 IET Indiana East + -4 PRT Atlantic Standard Time + -3.5 CNT Newfoundland + -3 AGT Eastern South America + -3 BET Eastern South America + -1 CAT Azores + Simple autoattendant diff --git a/mini-asterisk-gui2/install notes.txt b/mini-asterisk-gui2/install notes.txt index b8f73cb7..f13c95ff 100644 --- a/mini-asterisk-gui2/install notes.txt +++ b/mini-asterisk-gui2/install notes.txt @@ -3,7 +3,8 @@ Ian Roberts Sept 2012 0. ipkg install fping - ipkg install dropbear + ipkg install dropbear + ipkg install ntp 1. Uncomment cgi support in /etc/lighttpd.conf -- 2.25.1