batman-adv-legacy: ignore error when writing to mesh_iface (#146)

This commit is contained in:
Andreas Ziegler 2016-09-08 02:18:18 +02:00 committed by GitHub
parent c24cdae830
commit 515a9f48fb
1 changed files with 1 additions and 1 deletions

View File

@ -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