You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
299 B

[Unit]
Description= IPv6 Defaults Gateway Service
After=network.target
[Service]
EnvironmentFile=-/etc/network/%I
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/ip -6 route add default via $GW6 dev %I
ExecStop=/bin/ip -6 route delete default via $GW6 dev %I
[Install]
WantedBy=multi-user.target