sort fields by alphabet

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.6
Nico Schottelius 14 years ago
parent 09bf63ffca
commit 785ec3f36f
  1. 10
      conf/type/__user/gencode-remote

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

Loading…
Cancel
Save