Updating some of my example menu code.

This commit is contained in:
Patrick Kloepfer 2019-03-31 16:55:22 -04:00
parent 7924ab94a1
commit fd743e7ad2
3 changed files with 125 additions and 7 deletions

View File

@ -6,8 +6,6 @@ AUTO 4,1
# This menu will display a menu of options
# to Administer Users on your A2osX system.
#
# ECHO "Starting USERMENU" >> /RAM3/TESTSETLOG
# SET >> /RAM3/TESTSETLOG
SET MENULOOP = 1
WHILE [ $MENULOOP -EQ 1 ]
ECHO "\f A2osX User Admin Menu\n"
@ -29,11 +27,7 @@ SWITCH $Z
BREAK
CASE "L"
CASE "l"
# ECHO "Calling LISTUSERS from USERMENU" >> /RAM3/TESTSETLOG
# SET >> /RAM3/TESTSETLOG
LISTUSERS
# ECHO "Returning from LISTUSERS" >> /RAM3/TESTSETLOG
# SET >> /RAM3/TESTSETLOG
BREAK
CASE 2
ADDUSER
@ -45,7 +39,7 @@ SWITCH $Z
EDITUSER
BREAK
CASE 5
PASSWD
PASSWORD
BREAK
DEFAULT
ECHO "You entered an invalid choice"

73
EXAMPLES/MENU.DAT.txt Normal file
View File

@ -0,0 +1,73 @@
MENU:LINE:TEXT:ACTION:PREFIX
A:0:Master Menu:-:-
A:1:Administration Menu:B:-
A:2:User Management:C:-
A:3:Testing Subsystem Menu:D:-
A:4:Make System Menu:E:-
A:5:Extras Menu:F:-
A:6:-:-:-
A:7:-:-:-
A:8:-:-:-
B:0:Administration Menu:-:-
B:1:Display Processes (PS):PS:-
B:2:Display Memory (MEM):MEM:-
B:3:Kernel Configuration (KCONFIG):KCONFIG:-
B:4:List Volumes Online:ONLINE:/MAKE/USR/SHARE/ADMIN/
B:5:User Management:C:-
B:6:-:-:-
B:7:-:-:-
B:8:-:-:-
C:0:User Management:-:-
C:1:List Users:LISTUSERS:/MAKE/USR/SHARE/ADMIN/
C:2:Add User:ADDUSER:/MAKE/USR/SHARE/ADMIN/
C:3:Delete User:DELUSER:/MAKE/USR/SHARE/ADMIN/
C:4:Edit User Details:EDITUSER:/MAKE/USR/SHARE/ADMIN/
C:5:Change Password:PASSWORD:/MAKE/USR/SHARE/ADMIN/
C:6:-:-:-
C:7:-:-:-
C:8:-:-:-
D:0:Testing Subsystem Menu:-:-
D:1:Build Test Suite with Logging:BUILDTEST:/MAKE/USR/SHARE/TESTS/
D:2:Display Logs:LOG:/MAKE/USR/SHARE/TESTS/
D:3:Core Tests:CORETEST:/MAKE/USR/SHARE/TESTS/
D:4:Display Tests:DISPLAYTEST:/MAKE/USR/SHARE/TESTS/
D:5:Pathing Tests:PATHTEST:/MAKE/USR/SHARE/TESTS/
D:6:Internal Commands Tests:INTERNALTEST:/MAKE/USR/SHARE/TESTS/
D:7:External Commands Tests:EXTERNALTEST:/MAKE/USR/SHARE/TESTS/
D:8:-:-:-
E:0:Make System Menu:-:-
E:1:List Builds:-:-
E:2:Copy Latest Build:-:-
E:3:Delete a Build:-:-
E:4:Set Build Releases:-:-
E:5:Make Media:-:-
E:6:-:-:-
E:7:-:-:-
E:8:-:-:-
F:0:Extras Menu:-:-
F:1:Display A2osX Logo:LOGO:/MAKE/USR/SHARE/EXAMPLES/
F:2:Display A2osX License:LICENSE:/MAKE/USR/SHARE/EXAMPLES/
F:3:-:-:-
F:4:-:-:-
F:5:-:-:-
F:6:-:-:-
F:7:-:-:-
F:8:-:-:-
G:0:-:-:-
G:1:-:-:-
G:2:-:-:-
G:3:-:-:-
G:4:-:-:-
G:5:-:-:-
G:6:-:-:-
G:7:-:-:-
G:8:-:-:-
H:0:-:-:-
H:1:-:-:-
H:2:-:-:-
H:3:-:-:-
H:4:-:-:-
H:5:-:-:-
H:6:-:-:-
H:7:-:-:-
H:8:-:-:-

51
MAKE/MAKEMENU.txt Normal file
View File

@ -0,0 +1,51 @@
NEW
PREFIX
AUTO 4,1
#!/BIN/SH
#
# This menu will display a menu of options
# for building A2osX system Media and Components.
#
SET MENULOOP = 1
WHILE [ $MENULOOP -EQ 1 ]
ECHO "\f A2osX MAKE Menu\n"
ECHO " 1) List Builds"
ECHO " 2) Copy Latest Build"
ECHO " 3) Delete a Build"
ECHO " 4) Set Build Releases"
ECHO " 5) Make Media"
ECHO "\n X) Exit"
ECHO "\n"
READ -P "Enter Choice: " Z
IF [ -Z $Z ]
#User pressed return with no choice, bad idea
FI
SWITCH $Z
CASE "x"
CASE "X"
EXIT
BREAK
CASE "1"
LISTBUILDS
BREAK
CASE 2
COPYBUILD
BREAK
CASE 3
DELBUILD
BREAK
CASE 4
SETBUILD
BREAK
CASE 5
MAKEMEDIA
BREAK
DEFAULT
ECHO "You entered an invalid choice"
PAUSE
END
LOOP
ECHO
ECHO
MAN
TEXT /MAKE/USR/SHARE/MAKE/MAKEMENU