From 687e96a02f71529fb2f6b57ecdbdf6366e1fdd7c Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 15 Sep 2022 19:33:05 +0200 Subject: [PATCH] pkgs/openwrt/uci-config: fix mtu hotfix --- nix/pkgs/openwrt/uci-config.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/pkgs/openwrt/uci-config.nix b/nix/pkgs/openwrt/uci-config.nix index 5098be6..5c3735a 100644 --- a/nix/pkgs/openwrt/uci-config.nix +++ b/nix/pkgs/openwrt/uci-config.nix @@ -302,7 +302,7 @@ in optionalString (config.site.net ? ${net} && config.site.net.${net}.mtu != null) '' if [ "\\\$ACTION" = ifup -a "\\\$INTERFACE" = ${net} ]; then - ip link set ${net} mtu ${toString config.site.net.${net}.mtu} + ip link set \\\$DEVICE mtu ${toString config.site.net.${net}.mtu} fi '') (builtins.attrNames hostConfig.interfaces) }