Changeset 8
- Timestamp:
- 01/01/07 11:15:17 (4 days ago)
- Files:
-
- people/psilotum/porta2030-console (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
people/psilotum/porta2030-console
r7 r8 1 1 #!/bin/sh 2 2 3 # 3 ################################################### 4 4 # note and : 5 5 # 1. The library must auto-echo the input … … 24 24 s=skype_key 25 25 26 ###################################################27 #28 # read input parameters29 #30 ###################################################31 32 26 33 27 # variables and binary path … … 37 31 38 32 39 #if [ $# == 0 ]; then40 # echo -e "use porta2030-console -h for more help options"41 # exit 142 #fi43 33 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> ######################################## 60 35 # 61 36 # FUNCTION: camera, transfer, ping … … 100 75 } 101 76 77 # dial 78 dial(){ 79 echo "dial" 80 } 102 81 103 82 # 104 83 # 105 ###################### </Function ends>###################################84 ###################### </Function> ######################################## 106 85 107 86 … … 112 91 main_screen 113 92 read function_key 93 114 94 115 95 # action … … 128 108 elif [ $action = "3" ]; then 129 109 ping 110 elif [ "$action" = "$x" ]; then 111 main_screen 130 112 else 131 113 menu_screen 132 114 fi 133 115 134 elif [ $function_key = $k ]; then 116 elif [ x"$function_key" = x"$k" ]; then 117 menu_screen 135 118 136 elif [ $function_key = $h ]; then 119 elif [ x"$function_key" = x"$h" ]; then 120 menu_screen 137 121 138 elif [ $function_key = $l ]; then 122 elif [ x"$function_key" = x"$l" ]; then 123 menu_screen 139 124 140 elif [ $function_key = $o]; then141 125 elif [ x"$function_key" = x"$o" ]; then 126 dial 142 127 else 143 128 144 129 fi 130 131 # dial number (IP) section 132 # I need to think when I wake up.