Debian Codegraph @

executor-scripts/linux/ipv6-ra

raw
1 #!/bin/sh
2 start() {
3 ${MOCK} /bin/sh -c "echo 1 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra"
4 }
5
6 stop() {
7 ${MOCK} /bin/sh -c "echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra"
8 }
9
10 [ -z "$VERBOSE" ] || set -x
11
12 case "$PHASE" in
13 up) start $impl ;;
14 down) stop $impl ;;
15 *) ;;
16 esac