27 lines
433 B
Text
27 lines
433 B
Text
|
#!/sbin/openrc-run
|
||
|
name="inet2"
|
||
|
description="Sets up wireguard interfaces connected via the host's internet connection"
|
||
|
|
||
|
extra_started_commands="reloadwg"
|
||
|
|
||
|
start() {
|
||
|
/usr/local/bin/inet2.sh start
|
||
|
rc-service bird start 2> /dev/null
|
||
|
}
|
||
|
|
||
|
stop() {
|
||
|
/usr/local/bin/inet2.sh stop
|
||
|
rc-service bird stop 2> /dev/null
|
||
|
}
|
||
|
|
||
|
restart() {
|
||
|
stop
|
||
|
start
|
||
|
}
|
||
|
|
||
|
reload() {
|
||
|
/usr/local/bin/inet2.sh reload
|
||
|
rc-service bird restart 2> /dev/null
|
||
|
}
|
||
|
|