A2osX/ADMIN/USERMENU.txt

53 lines
882 B
Plaintext
Raw Permalink Normal View History

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
2019-03-31 20:55:22 +00:00
PASSWORD
BREAK
DEFAULT
ECHO "You entered an invalid choice"
PAUSE
END
LOOP
ECHO
ECHO
MAN
TEXT /MAKE/USR/SHARE/ADMIN/USERMENU