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.

14 lines
286 B

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