1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-20 07:38:30 +02:00
gluon-packages/gluon/gluon-legacy/generate/lib/gluon/upgrade/mesh-batman-adv/legacy/010-mesh

19 lines
349 B
Plaintext
Raw Normal View History

#!/bin/sh
. /lib/functions.sh
. /lib/gluon/functions/sysconfig.sh
uci_rename network '@legacy.mesh_ifname@' 'client'
if [ "$(uci_get network client proto)" = 'none' ]; then
uci_remove network client auto
uci_remove network client accept_ra
uci_set network client proto 'dhcpv6'
uci_set network client reqprefix 'no'
fi
uci_commit network