summaryrefslogtreecommitdiff
path: root/spec/ospf/vyos4_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ospf/vyos4_script.sh')
-rw-r--r--spec/ospf/vyos4_script.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/ospf/vyos4_script.sh b/spec/ospf/vyos4_script.sh
new file mode 100644
index 0000000..42b239e
--- /dev/null
+++ b/spec/ospf/vyos4_script.sh
@@ -0,0 +1,12 @@
+#!/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 static route 10.0.2.0/24 next-hop 10.0.3.12
+
+commit
+save