sort fields by alphabet

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-04 13:20:22 +02:00
parent 09bf63ffca
commit 785ec3f36f

View file

@ -32,10 +32,6 @@ if grep -q "^${name}:" "$__object/explorer/passwd"; then
file="$__object/explorer/passwd" file="$__object/explorer/passwd"
case "$property" in case "$property" in
password)
field=3
file="$__object/explorer/shadow"
;;
gid) gid)
if $(echo "$new_value" | grep -q '^[0-9][0-9]*$'); then if $(echo "$new_value" | grep -q '^[0-9][0-9]*$'); then
field=4 field=4
@ -45,10 +41,14 @@ if grep -q "^${name}:" "$__object/explorer/passwd"; then
field=1 field=1
fi fi
;; ;;
uid) field=3 ;; password)
field=3
file="$__object/explorer/shadow"
;;
comment) field=5 ;; comment) field=5 ;;
home) field=6 ;; home) field=6 ;;
shell) field=7 ;; shell) field=7 ;;
uid) field=3 ;;
esac esac
export field export field