router/link.fish
2021-07-10 14:04:31 -05:00

13 lines
299 B
Fish
Executable file

#!/usr/bin/env fish
function rmlink
rm -f $argv[1]
ezln $argv[1] $argv[2]
end
rmlink dnsmasq.conf /etc/dnsmasq.conf
rmlink usb-ethernet-as-lan0.link /etc/systemd/network/10-usb-eth-adapter.link
cp eth0.network /etc/systemd/network/eth0.network
cp lan0.network /etc/systemd/network/lan0.network