Message ID | 20180610120601.21151-3-tim@tn-x.org |
---|---|
State | Accepted |
Headers | show |
diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood index 1b9fa2b..42a489d 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -98,6 +98,9 @@ else rm -f "$hoodfilecopy" # delete this, so interfaces are recreated if reconnect with unchanged hood file takes place rm -f "$sectorcopy" # always delete: no broadcast for isolated device rm -f "$sectortmp" + + uci -q del "system.@system[0].hood" + uci -q commit system sleep 30 # Wait for the config AP, which may be created at the same time as this script has started
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> > -----Original Message----- > From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf > Of Tim Niemeyer > Sent: Sonntag, 10. Juni 2018 14:06 > To: franken-dev@freifunk.net > Subject: [PATCH v1 2/4] fff-hoods: set hood to none if on station mode > > Signed-off-by: Tim Niemeyer <tim@tn-x.org> > Reviewed-by: Christian Dresel <fff@chrisi01.de> > --- > > Changes in v1: > - Changed "uci set" to "uci del" > > src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > index 1b9fa2b..42a489d 100755 > --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > @@ -98,6 +98,9 @@ else > rm -f "$hoodfilecopy" # delete this, so interfaces are > recreated if reconnect with unchanged hood file takes place > rm -f "$sectorcopy" # always delete: no broadcast for > isolated device > rm -f "$sectortmp" > + > + uci -q del "system.@system[0].hood" > + uci -q commit system > > sleep 30 # Wait for the config AP, which may be > created at the same time as this script has started > > -- > 2.11.0
Reviewed-by: Robert Langhammer <rlanghammer@web.de> Am 10.06.2018 um 14:05 schrieb Tim Niemeyer: > Signed-off-by: Tim Niemeyer <tim@tn-x.org> > Reviewed-by: Christian Dresel <fff@chrisi01.de> > --- > > Changes in v1: > - Changed "uci set" to "uci del" > > src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > index 1b9fa2b..42a489d 100755 > --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > @@ -98,6 +98,9 @@ else > rm -f "$hoodfilecopy" # delete this, so interfaces are recreated if reconnect with unchanged hood file takes place > rm -f "$sectorcopy" # always delete: no broadcast for isolated device > rm -f "$sectortmp" > + > + uci -q del "system.@system[0].hood" > + uci -q commit system > > sleep 30 # Wait for the config AP, which may be created at the same time as this script has started >