16 lines
275 B
Bash
Executable file
16 lines
275 B
Bash
Executable file
#!/bin/sh
|
|
start() {
|
|
${MOCK} /bin/sh -c "echo 1 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra"
|
|
}
|
|
|
|
stop() {
|
|
${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
|