userdel (300675f6fc464ea902932e6ee4aa2ac98e3f3c34) | userdel (526e1dc1c0d052b9d2a6cd6da7a16eb09c971c54) |
---|---|
1#!/bin/sh 2#- 3# Copyright (c) 2012 Ron McDowell 4# Copyright (c) 2012 Devin Teske 5# All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 57 unchanged lines hidden (view full) --- 66 67# 68# Loop until the user Exits, Cancels or presses ESC 69# 70while :; do 71 f_dialog_menu_user_list 72 retval=$? 73 mtag=$( f_dialog_menutag ) | 1#!/bin/sh 2#- 3# Copyright (c) 2012 Ron McDowell 4# Copyright (c) 2012 Devin Teske 5# All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 57 unchanged lines hidden (view full) --- 66 67# 68# Loop until the user Exits, Cancels or presses ESC 69# 70while :; do 71 f_dialog_menu_user_list 72 retval=$? 73 mtag=$( f_dialog_menutag ) |
74 f_dprintf "retval=$retval mtag=[$mtag]" | 74 f_dprintf "retval=%u mtag=[%s]" $retval "$mtag" |
75 76 [ $retval -eq 0 ] || f_die 77 78 case "$mtag" in 79 "X $msg_exit") break ;; 80 81 *) # anything else is a userid 82 $BSDCFG_LIBE/$APP_DIR/userinput \ 83 ${USE_XDIALOG:+-X} mode="Delete" user="$mtag" 84 ;; 85 86 esac 87done 88 89exit $SUCCESS 90 91################################################################################ 92# END 93################################################################################ | 75 76 [ $retval -eq 0 ] || f_die 77 78 case "$mtag" in 79 "X $msg_exit") break ;; 80 81 *) # anything else is a userid 82 $BSDCFG_LIBE/$APP_DIR/userinput \ 83 ${USE_XDIALOG:+-X} mode="Delete" user="$mtag" 84 ;; 85 86 esac 87done 88 89exit $SUCCESS 90 91################################################################################ 92# END 93################################################################################ |