1 # Skip fake devices (e.g. relayd)
2 grep -qs "^ *$DEVICE:" /proc/net/dev || exit 0
10 local proto accept_ra send_rs
12 config_get proto "$INTERFACE" proto
13 if [ "$proto" = dhcp ]; then
21 config_get_bool accept_ra "$INTERFACE" accept_ra $accept_ra
22 [ $accept_ra -eq 0 ] || {
23 logger -t ifup "Allowing Router Advertisements on $INTERFACE ($DEVICE)"
26 do_sysctl "net.ipv6.conf.$DEVICE.accept_ra" $accept_ra
28 config_get_bool send_rs "$INTERFACE" send_rs $send_rs
29 [ $send_rs -eq 0 ] || {
30 logger -t ifup "Enabling Router Solicitations on $INTERFACE ($DEVICE)"
33 do_sysctl "net.ipv6.conf.$DEVICE.forwarding" $send_rs