A2osX/ADMIN/USERMENU.txt
2019-03-31 16:55:22 -04:00

53 lines
882 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
PREFIX
AUTO 4,1
#!/BIN/SH
#
# This menu will display a menu of options
# to Administer Users on your A2osX system.
#
SET MENULOOP = 1
WHILE [ $MENULOOP -EQ 1 ]
ECHO "\f A2osX User Admin Menu\n"
ECHO " L) List Users"
ECHO " 2) Add User"
ECHO " 3) Delete User"
ECHO " 4) Edit User Details"
ECHO " 5) Change Password"
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 "L"
CASE "l"
LISTUSERS
BREAK
CASE 2
ADDUSER
BREAK
CASE 3
DELUSER
BREAK
CASE 4
EDITUSER
BREAK
CASE 5
PASSWORD
BREAK
DEFAULT
ECHO "You entered an invalid choice"
PAUSE
END
LOOP
ECHO
ECHO
MAN
TEXT /MAKE/USR/SHARE/ADMIN/USERMENU