Add path handling to kamctl.

3.1
Andreas Granig 13 years ago
parent 309275b4ed
commit ca0a4aa45c

@ -2123,10 +2123,17 @@ usrloc() {
UL_EXPIRES=0
UL_FLAGS=0
BR_FLAGS=0
UL_PATH=""
elif [ $# -eq 4 ] ; then
UL_EXPIRES=$4
UL_FLAGS=0
BR_FLAGS=0
UL_PATH=""
elif [ $# -eq 5 ] ; then
UL_EXPIRES=$4
UL_FLAGS=0
BR_FLAGS=0
UL_PATH="$5"
else
usage_usrloc
exit 1
@ -2159,7 +2166,7 @@ usrloc() {
fi
$CTLCMD ul_add "$USRLOC_TABLE" "$OSERUSER@$OSERDOMAIN" "$2" \
"$UL_EXPIRES" "1.00" "0" "$UL_FLAGS" "$BR_FLAGS" "$ALL_METHODS"
"$UL_EXPIRES" "1.00" "$UL_PATH" "$UL_FLAGS" "$BR_FLAGS" "$ALL_METHODS"
exit $?
;;
rm)

@ -169,6 +169,9 @@ Introduce a permanent usrloc entry
.TP
.B ul add <username> <uri> <expires>
Introduce a temporary usrloc entry
.TP
.B ul add <username> <uri> <expires> <path>
Introduce a temporary usrloc entry including a path
.TP 16
.I Fifo commands:

@ -63,11 +63,12 @@ usage_usrloc() {
mecho " -- command 'ul|alias' - manage user location or aliases"
echo
cat <<EOF
ul show [<username>]................ show in-RAM online users
ul show --brief..................... show in-RAM online users in short format
ul rm <username> [<contact URI>].... delete user's usrloc entries
ul add <username> <uri> ............ introduce a permanent usrloc entry
ul add <username> <uri> <expires> .. introduce a temporary usrloc entry
ul show [<username>]................... show in-RAM online users
ul show --brief........................ show in-RAM online users in short format
ul rm <username> [<contact URI>]....... delete user's usrloc entries
ul add <username> <uri> ............... introduce a permanent usrloc entry
ul add <username> <uri> <expires> ..... introduce a temporary usrloc entry
ul add <user> <uri> <expires> <path> .. introduce a temporary usrloc entry
EOF
}
USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_usrloc"

Loading…
Cancel
Save