ifupdown-ng/executor-scripts/linux/ipv6-ra
2020-07-26 03:26:11 -06:00

17 lines
250 B
Bash
Executable file

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