mirror of
https://github.com/jerikan-network/cmdb.git
synced 2024-05-06 04:54:50 +00:00
d191613ab8
No history. If you have the original history, you can use: ``` git replace THISCOMMIT b0b998bd1c651e308ac71a9158e07e5c3521a281 ```
12 lines
267 B
Bash
Executable File
12 lines
267 B
Bash
Executable File
#!/bin/sh
|
|
|
|
conf=$(mktemp)
|
|
trap "rm -f $conf" EXIT
|
|
|
|
(
|
|
grep -qFx "table public;" output/"$1"/bird.conf || echo "table public;"
|
|
grep -qFx "table private;" output/"$1"/bird.conf || echo "table private;"
|
|
cat output/"$1"/bird.conf
|
|
) > $conf
|
|
bird -d -p -c $conf
|