summaryrefslogtreecommitdiff
path: root/scripts/vyatta-cfg-notify
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-13 17:16:39 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-13 17:16:39 -0800
commit601785f01f89ccac4cae7587bafc4958888b8db1 (patch)
tree05a7ac1bb77cca6258ce55870abd37b0062061a2 /scripts/vyatta-cfg-notify
parent96b548691d857e331ebcb0313ff94bd40127b795 (diff)
downloadvyatta-cfg-601785f01f89ccac4cae7587bafc4958888b8db1.tar.gz
vyatta-cfg-601785f01f89ccac4cae7587bafc4958888b8db1.zip
use the right group name for config change notification.
Diffstat (limited to 'scripts/vyatta-cfg-notify')
-rwxr-xr-xscripts/vyatta-cfg-notify4
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]}