Changes between Version 12 and Version 13 of Docs/Prog/Manual/Foundation/ApplicationModeStartup
- Timestamp:
- 04/25/23 06:55:52 (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/Foundation/ApplicationModeStartup
v12 v13 92 92 }}} 93 93 94 [[Top]]95 94 96 95 == Modules == … … 123 122 124 123 such as '''rmmod max734x'''. 125 [[Top]]126 124 127 125 … … 217 215 218 216 219 [[Top]]220 221 217 The [wiki:Docs/Prog/Manual/ConfigurationUtility Configuration Utility] “touchcal” has an option “Configure Menu” which allows the menu to be customized. 222 218 … … 225 221 The following lines check the return value from the appmenu program: 226 222 {{{ 227 #!Lineno228 223 #!sh 229 224 tmp=$? … … 244 239 245 240 {{{ 246 #!Lineno247 241 #!sh 248 242 12) /mnt/nand/bin/touchcal ;; … … 251 245 If the value is equal to 12 the configuration program “touchcal” is called. 252 246 {{{ 253 #!Lineno254 247 #!sh 255 248 12) /usr/sbin/diag/touchcal … … 263 256 264 257 {{{ 265 #!Lineno266 258 #!sh 267 259 #!/bin/sh … … 284 276 Note that this script contains another while-do-done loop and launches the file manager within the loop. If certain file types are selected such as an S19 file to update firmware, or a bmp file to display the file manager creates a another script /tmp/filemgr_cmd.sh and returns with an exit code 1. In this case the filemgr.sh script calls the filemgr_cmd.sh script and when complete the while loop will cause the filemgr to start again. If the file manager is exited the return value is zero and exit statement is executed so control will return to the appmenu script. 285 277 {{{ 286 #!Lineno287 278 #!sh 288 279 14) /usr/sbin/diag/imageview /mnt/nand/cfg/slideshow.cfg ;; … … 293 284 294 285 {{{ 295 #!Lineno296 286 /mnt/nand/images/825_Indicator_Startup_Screen_1.bmp 297 287 /mnt/nand/images/825_Indicator_Startup_Screen_2.bmp … … 316 306 If you want to stop the “indicator”, “touchcal”, or “appmenu” program you should use the “ps” command and find the <PID> process ID of the script “sh appmenu.sh” first. Use the “kill” command to stop the script before stopping the program. Otherwise, the script may immediately restart the program. 317 307 318 [[Top]]319 308 320 309