diff options
author | alex <alex@builder.localdomain> | 2007-12-17 15:34:37 -0800 |
---|---|---|
committer | alex <alex@builder.localdomain> | 2007-12-17 15:34:37 -0800 |
commit | e031e51f8da8581311d780983d2e335f058fca99 (patch) | |
tree | 2981c37aa3fc5252f6659870e5b4bce1717e13a5 /scripts/vyatta-cfg-notify | |
parent | edb8226cb91b197f022bfdd28246ff5a86541614 (diff) | |
parent | e65d2f0e7423bd9d6120e0373a83aad3795670aa (diff) | |
download | vyatta-cfg-e031e51f8da8581311d780983d2e335f058fca99.tar.gz vyatta-cfg-e031e51f8da8581311d780983d2e335f058fca99.zip |
Merge branch 'master' of http://phuket.vyatta.com/vyatta-cfg
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]} |