2019-02-26 20:48:30 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX
|
|
|
|
|
AUTO 4,1
|
|
|
|
|
#!/BIN/SH
|
|
|
|
|
#
|
|
|
|
|
# This menu will display a menu of options
|
|
|
|
|
# for the Administration of your A2osX system.
|
|
|
|
|
#
|
2019-03-02 21:19:35 +00:00
|
|
|
|
SET MENULOOP = 1
|
|
|
|
|
WHILE [ $MENULOOP -EQ 1 ]
|
2019-02-26 20:48:30 +00:00
|
|
|
|
ECHO "\f A2osX Admin System Menu\n"
|
|
|
|
|
ECHO " 1) Display Processes (PS)"
|
|
|
|
|
ECHO " 2) Display Memory (MEM)"
|
|
|
|
|
ECHO " 3) Configure Networking (CONFNET)"
|
|
|
|
|
ECHO " 4) Kernel Configuration (KCONFIG)"
|
|
|
|
|
ECHO " 5) List Volumes Online (ONLINE)"
|
|
|
|
|
ECHO " 6) "
|
|
|
|
|
ECHO " 7) "
|
|
|
|
|
ECHO " 8) "
|
|
|
|
|
ECHO " 9) A2osX Test Suite"
|
|
|
|
|
ECHO "\n 0) Exit"
|
|
|
|
|
ECHO "\n"
|
|
|
|
|
READ -P "Enter Choice: " Z
|
|
|
|
|
IF [ $Z = "1" ]
|
|
|
|
|
echo "\f A2osx Process Listing\n"
|
|
|
|
|
PS
|
|
|
|
|
ECHO "\nPress Return to redisplay menu"
|
|
|
|
|
PAUSE
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "2" ]
|
|
|
|
|
echo "\f A2osx Memory Listing\n"
|
2019-03-02 21:19:35 +00:00
|
|
|
|
MEM
|
2019-02-26 20:48:30 +00:00
|
|
|
|
ECHO "\nPress Return to redisplay menu"
|
|
|
|
|
PAUSE
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "3" ]
|
|
|
|
|
CONFNET
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "4" ]
|
|
|
|
|
KCONFIG
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "5" ]
|
|
|
|
|
echo "\f Online Volume Listing\n"
|
|
|
|
|
LS -L /
|
|
|
|
|
ECHO "\nPress Return to redisplay menu"
|
|
|
|
|
PAUSE
|
|
|
|
|
ELSE
|
2019-03-03 02:15:17 +00:00
|
|
|
|
IF [ $Z = "6" ]
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "7" ]
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "8" ]
|
|
|
|
|
ELSE
|
2019-02-26 20:48:30 +00:00
|
|
|
|
IF [ $Z = "9" ]
|
|
|
|
|
PUSHD
|
|
|
|
|
CD ../TESTS
|
|
|
|
|
TESTMENU
|
|
|
|
|
POPD
|
|
|
|
|
ELSE
|
2019-03-02 21:19:35 +00:00
|
|
|
|
IF [ $Z = "0" ]
|
|
|
|
|
SET MENULOOP = 0
|
|
|
|
|
ELSE
|
|
|
|
|
ECHO "\n\nInvalid Selection\n"
|
2019-03-03 02:15:17 +00:00
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
2019-02-26 20:48:30 +00:00
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
2019-03-02 21:19:35 +00:00
|
|
|
|
LOOP
|
|
|
|
|
ECHO
|
|
|
|
|
ECHO
|
2019-02-26 20:48:30 +00:00
|
|
|
|
MAN
|
|
|
|
|
TEXT /MAKE/USR/SHARE/ADMIN/ADMINMENU
|