From c9858a397d52694ea90ba2b271d697a59b3f2cb4 Mon Sep 17 00:00:00 2001 From: Andreas Ziegler Date: Thu, 8 Sep 2016 02:13:54 +0200 Subject: [PATCH] batman-adv-legacy: ignore error when writing to mesh_iface --- net/batman-adv-legacy/files/lib/netifd/proto/batadv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv-legacy/files/lib/netifd/proto/batadv.sh b/net/batman-adv-legacy/files/lib/netifd/proto/batadv.sh index 01f567f..42acc28 100644 --- a/net/batman-adv-legacy/files/lib/netifd/proto/batadv.sh +++ b/net/batman-adv-legacy/files/lib/netifd/proto/batadv.sh @@ -27,7 +27,7 @@ proto_batadv_teardown() { local config="$1" local iface="$2" - echo "none" > "/sys/class/net/$iface/batman_adv/mesh_iface" || true + (echo "none" > "/sys/class/net/$iface/batman_adv/mesh_iface") 2>/dev/null } add_protocol batadv