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