blob: 058f4f1d703cae642ff434c239719532862131ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
post_install() {
groupadd -r quagga
useradd -MNr -s /bin/false -d /run/quagga -g quagga quagga && passwd -l quagga &>/dev/null
install -d -m 750 -o quagga -g quagga /{run,etc,var/log}/quagga
:
}
pre_remove() {
for d in zebra ripd ripngd bgpd ospfd ospf6d isisd; do
/etc/rc.d/$d stop &>/dev/null
done
:
}
post_remove() {
userdel quagga &>/dev/null
groupdel quagga &>/dev/null
rmdir /{etc,var/log}/quagga
:
}
# vim: ft=sh ts=2 sw=2 et:
|