login modified to detect x86 or IP0X platform
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 3 Feb 2010 02:53:15 +0000 (02:53 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 3 Feb 2010 02:53:15 +0000 (02:53 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@135 01035d8c-6547-0410-b346-abe4f91aad63

mini-asterisk-gui/cgi-bin/login.sh
mini-asterisk-gui/cgi-bin/tooltip.css

index 0ae903a8ea85f143be9d83f7995929979352f58b..39862119e4397f338bf56841c6e7e6ec060aae3e 100644 (file)
@@ -30,8 +30,21 @@ EOF
     </html>
 EOF
 else
-    testuser root $pass
+    
+    # If we are a non-blackfin then use hard coded password for now.
+    # I don't feel comfortable sending root password through a web
+    # GUI for x86 boxes, but this is reasonable approach for embedded
+    # systems.  TODO: add a way to store and modify x86 passwds
+
+    cat /proc/cpuinfo | grep "CPU:.*ADSP" > /dev/null
     if [ $? -eq 0 ]; then
+       # Blackfin IP0X system
+        testuser root "$pass"; res=$?
+    else
+       [ $pass = "uClinux" ] ; res=$?
+    fi 
+
+    if [ $res -eq 0 ]; then
 
        # login sucessful
         echo "Content-type: text/html"
index f426356c79e5abffa7a33d0a90cfe589f2f62a88..beaefc0745d050415dc6f257387f5212455f686a 100644 (file)
@@ -1,4 +1,4 @@
-.tip {font:12px/14px
+.tip {font:14px/16px
 Arial,Helvetica,sans-serif; border:solid 1px
 #666666; width:270px; padding:1px;
 position:absolute; z-index:100;