diff options
author | rbalocca <rbalocca@fugazi.vyatta.com> | 2007-12-18 14:18:24 -0800 |
---|---|---|
committer | rbalocca <rbalocca@fugazi.vyatta.com> | 2007-12-18 14:18:24 -0800 |
commit | 64a8cfa9effac219e51498c3b8ef43437ad0396a (patch) | |
tree | fb11fa4d01b3dbe1f0f60e838b4ec450cbf31a64 /scripts/vyatta-cfg-notify | |
parent | 65db98116efa3c311c798f05f4f6ec97e9b6d643 (diff) | |
parent | 7966b8cf00e08548447e551a3fcfde40aa06cc59 (diff) | |
download | vyatta-cfg-64a8cfa9effac219e51498c3b8ef43437ad0396a.tar.gz vyatta-cfg-64a8cfa9effac219e51498c3b8ef43437ad0396a.zip |
Merge branch 'master' into glendale
Diffstat (limited to 'scripts/vyatta-cfg-notify')
-rwxr-xr-x | scripts/vyatta-cfg-notify | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vyatta-cfg-notify b/scripts/vyatta-cfg-notify index 82dc6a3..07a385d 100755 --- a/scripts/vyatta-cfg-notify +++ b/scripts/vyatta-cfg-notify @@ -1,11 +1,13 @@ #!/bin/bash +[ -r /etc/default/vyatta ] && source /etc/default/vyatta + declare cur_tty=$(ps -o tty= |head -n1) declare cur_uid=($(ps -o ruser= n |head -n1)) declare cur_user=$(grep "[^:]\+:[^:]*:${cur_uid[0]}:" /etc/passwd \ | cut -d ':' -f 1) declare -a ulist=( $(ps -a -o args,tty,ruser n \ - | grep '^newgrp quaggavty' | cut -c 29-) ) + | grep "^newgrp $VYATTA_CFG_GROUP_NAME" | cut -c 29-) ) for (( i = 0; i < ${#ulist[@]}; i += 2 )); do utty=${ulist[i]} |