[PATCH] Add option to set Hoodconfiguration fix

robert rlanghammer at web.de
Di Jan 2 14:48:07 CET 2018


Hi Christian,

warum über uci configurehood disablen? Soll da später mal ein Häkchen im
UI entstehen? Wenn man das bei einem Uplinkrouter macht, kommt
vpn-select nie dran und es gibt keine Tunnel. Ich verstehe es nicht ganz.



Am 02.01.2018 um 13:20 schrieb Christian Dresel:
> To set Hoodconfiguration fix use:
> uci set fff.system.hoodfix=1
> uci commit
> to revert this use:
> uci del fff.system.hoodfix
> uci commit
>
> Signed-off-by: Christian Dresel <fff at chrisi01.de>
> ---
>  src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> index 2b9c47e..02d9a90 100755
> --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> @@ -1,5 +1,10 @@
>  #!/bin/sh
>  
> +if [ $(uci -q get fff.system.hoodfix) ]; then
> +        echo "Hood is fix, we do nothing"
> +        exit 1
Bei einem gewünschtem Ausstieg ohne Fehler wäre errorlevel 0 schöner.

Robert
> +fi
> +
>  . /usr/share/libubox/jshn.sh
>  . /lib/functions/fff/keyxchange
>  . /lib/functions/fff/network



Mehr Informationen über die Mailingliste franken-dev