ifupdown-ng/executor-scripts/linux/ipv6-ra

20 lines
284 B
Text
Raw Normal View History

#!/bin/sh
2020-08-26 09:35:18 +00:00
set -e
start() {
2020-07-26 09:54:06 +00:00
${MOCK} /bin/sh -c "echo 1 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra"
}
stop() {
2020-07-26 09:54:06 +00:00
${MOCK} /bin/sh -c "echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra"
}
[ -z "$VERBOSE" ] || set -x
case "$PHASE" in
up) start $impl ;;
down) stop $impl ;;
*) ;;
esac