build: allow for non-linux executors

This commit is contained in:
Ariadne Conill 2020-07-26 03:16:52 -06:00
parent c1e1d30a58
commit 43c147c6cf
4 changed files with 4 additions and 2 deletions

17
executor-scripts/linux/ipv6-ra Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
start() {
echo 1 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
}
stop() {
echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
}
[ -z "$VERBOSE" ] || set -x
case "$PHASE" in
up) start $impl ;;
down) stop $impl ;;
*) ;;
esac