diff options
Diffstat (limited to 'spec/bgp4/vyos2_script.sh')
-rw-r--r-- | spec/bgp4/vyos2_script.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/bgp4/vyos2_script.sh b/spec/bgp4/vyos2_script.sh index 1be2c7e..7cb0586 100644 --- a/spec/bgp4/vyos2_script.sh +++ b/spec/bgp4/vyos2_script.sh @@ -1,5 +1,9 @@ #!/bin/vbash +if [ "$(id -g -n)" != 'vyattacfg' ] ; then + exec sg vyattacfg -c "/bin/vbash $(readlink -f $0) $@" +fi + source /opt/vyatta/etc/functions/script-template set protocols bgp 65537 neighbor 10.0.1.11 ebgp-multihop 2 |