userdel (e14ddd1f16e7e5788392c50de21ea7c927e0690c) | userdel (d3a0f9181641cfebdceac242e7a496001c67c28e) |
---|---|
1#!/bin/sh 2#- 3# Copyright (c) 2012 Ron McDowell 4# Copyright (c) 2012-2013 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 --- 53 unchanged lines hidden (view full) --- 62# 63f_dialog_title "$msg_delete $msg_login" 64f_dialog_backtitle "${ipgm:+bsdconfig }$pgm" 65f_mustberoot_init 66 67# 68# Loop until the user Exits, Cancels or presses ESC 69# | 1#!/bin/sh 2#- 3# Copyright (c) 2012 Ron McDowell 4# Copyright (c) 2012-2013 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 --- 53 unchanged lines hidden (view full) --- 62# 63f_dialog_title "$msg_delete $msg_login" 64f_dialog_backtitle "${ipgm:+bsdconfig }$pgm" 65f_mustberoot_init 66 67# 68# Loop until the user Exits, Cancels or presses ESC 69# |
70defaultitem="" |
|
70while :; do | 71while :; do |
71 f_dialog_menu_user_list | 72 f_dialog_menu_user_list "$defaultitem" |
72 retval=$? 73 mtag=$( f_dialog_menutag ) 74 f_dprintf "retval=%u mtag=[%s]" $retval "$mtag" | 73 retval=$? 74 mtag=$( f_dialog_menutag ) 75 f_dprintf "retval=%u mtag=[%s]" $retval "$mtag" |
76 defaultitem="$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################################################################################ | 77 78 [ $retval -eq 0 ] || f_die 79 80 case "$mtag" in 81 "X $msg_exit") break ;; 82 83 *) # anything else is a userid 84 $BSDCFG_LIBE/$APP_DIR/userinput \ 85 ${USE_XDIALOG:+-X} mode="Delete" user="$mtag" 86 ;; 87 88 esac 89done 90 91exit $SUCCESS 92 93################################################################################ 94# END 95################################################################################ |