You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
365 B
Plaintext
17 lines
365 B
Plaintext
case "$ACTION" in
|
|
ifup)
|
|
. /lib/functions.sh
|
|
|
|
local proto ip6slaac
|
|
config_load network
|
|
config_get proto "$INTERFACE" proto
|
|
config_get_bool ip6slaac "$INTERFACE" ip6slaac
|
|
|
|
if [ "$proto" = "static" -a "$ip6slaac" = "1" ]; then
|
|
echo 2 > "/proc/sys/net/ipv6/conf/$DEVICE/accept_ra"
|
|
echo 2 > "/proc/sys/net/ipv6/conf/$DEVICE/forwarding"
|
|
fi
|
|
;;
|
|
esac
|
|
|