mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-27 04:49:20 +00:00
53 lines
882 B
Plaintext
53 lines
882 B
Plaintext
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
|