diff --git a/nixos/boxes/home/routing-common/mstpd.nix b/nixos/boxes/home/routing-common/mstpd.nix index fad6382..acf44da 100644 --- a/nixos/boxes/home/routing-common/mstpd.nix +++ b/nixos/boxes/home/routing-common/mstpd.nix @@ -24,8 +24,8 @@ in onState = [ "routable" ]; script = '' #!${pkgs.runtimeShell} - if [ $IFACE = "lan" ]; then - ${mstpd}/sbin/mstpctl setforcevers $IFACE rstp + if [ "$IFACE" = "lan" ]; then + ${mstpd}/sbin/mstpctl setforcevers "$IFACE" rstp fi ''; };