Changeset 8

Show
Ignore:
Timestamp:
01/01/07 11:15:17 (4 days ago)
Author:
psilotum
Message:

add dial program(only idea) and correct something trivial

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • people/psilotum/porta2030-console

    r7 r8  
    11#!/bin/sh 
    22 
    3 # 
     3################################################### 
    44# note and :  
    55# 1. The library must auto-echo the input 
     
    2424s=skype_key 
    2525 
    26 ################################################### 
    27 # 
    28 # read input parameters 
    29 # 
    30 ################################################### 
    31  
    3226 
    3327# variables and binary path 
     
    3731 
    3832 
    39 #if [ $# == 0 ]; then 
    40 #  echo -e "use porta2030-console -h for more help options" 
    41 #  exit 1 
    42 #fi 
    4333 
    44 #while test $# -gt 0; do 
    45  
    46  # case $1 in 
    47  
    48   #-h | --help) 
    49    #cat << EOF 
    50  
    51 #[help messages]   
    52  
    53 #EOF  
    54  # exit 1;; 
    55  
    56 #done 
    57  
    58  
    59 ###################### </Function begins> ################################# 
     34###################### </Function> ######################################## 
    6035# 
    6136# FUNCTION: camera, transfer, ping 
     
    10075} 
    10176 
     77# dial  
     78dial(){ 
     79  echo "dial" 
     80} 
    10281 
    10382# 
    10483# 
    105 ###################### </Function ends> ################################### 
     84###################### </Function> ######################################## 
    10685 
    10786 
     
    11291main_screen 
    11392read function_key 
     93 
    11494 
    11595# action 
     
    128108      elif [ $action = "3" ]; then 
    129109          ping 
     110      elif [ "$action" = "$x" ]; then 
     111          main_screen 
    130112      else 
    131  
     113          menu_screen 
    132114    fi 
    133115   
    134   elif [ $function_key = $k ]; then 
     116  elif [ x"$function_key" = x"$k" ]; then 
     117          menu_screen 
    135118 
    136   elif [ $function_key = $h ]; then 
     119  elif [ x"$function_key" = x"$h" ]; then 
     120          menu_screen 
    137121 
    138   elif [ $function_key = $l ]; then 
     122  elif [ x"$function_key" = x"$l" ]; then 
     123          menu_screen 
    139124 
    140   elif [ $function_key = $o ]; then 
    141  
     125  elif [ x"$function_key" = x"$o" ]; then 
     126          dial 
    142127  else 
    143128 
    144129fi 
     130 
     131# dial number (IP) section 
     132# I need to think when I wake up.