1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-15 19:54:07 +02:00
gluon-packages/gluon/gluon-legacy/generate/lib/gluon/upgrade/mesh-batman-adv/legacy/010-mesh
2014-02-22 08:27:51 +01:00

19 lines
349 B
Bash
Executable File

#!/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