aboutsummaryrefslogtreecommitdiffstats
path: root/testing/frr/frr.pre-install
diff options
context:
space:
mode:
authorArthur Jones <arthur.jones@riverbed.com>2018-06-04 15:56:13 -0700
committerTimo Teräs <timo.teras@iki.fi>2018-07-25 08:40:01 +0000
commit6c21984c5b86ca03c72a88927f8c1de0c420e25f (patch)
tree90c83f085a32ffcec3482452348316ba08956345 /testing/frr/frr.pre-install
parent5ad6fd1e0bd69114140ccf3403b52f93fafd61e5 (diff)
downloadaports-6c21984c5b86ca03c72a88927f8c1de0c420e25f.tar.bz2
aports-6c21984c5b86ca03c72a88927f8c1de0c420e25f.tar.xz
testing/frr: new aport for free range routing, a fork of quagga
FRRouting is free software that implements and manages various IPv4 and IPv6 routing protocols. Currently FRRouting supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, RIPng, IS-IS, PIM-SM/MSDP, LDP and Babel as well as very early support for EIGRP and NHRP. During PR review, fix for openrc-run issue discovered and fix contributed by Hidde Van der Heide. fixes #8795
Diffstat (limited to 'testing/frr/frr.pre-install')
-rwxr-xr-xtesting/frr/frr.pre-install10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/frr/frr.pre-install b/testing/frr/frr.pre-install
new file mode 100755
index 0000000000..da608cdcbd
--- /dev/null
+++ b/testing/frr/frr.pre-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+for g in frr frrvty; do
+ ! getent group $g > /dev/null && addgroup -S $g
+done
+
+! getent passwd frr > /dev/null && \
+ adduser -S -D -h /var/run/frr -s /sbin/nologin -G frr -g frr frr
+
+adduser frr frrvty