[PATCH] Moved network configuration script to own package

Tim Niemeyer tim at tn-x.org
Mo Mai 16 14:16:06 CEST 2016


Hi

Am Montag, den 16.05.2016, 14:06 +0200 schrieb Jan Kraus:
> also added check if IPv6 prefix is set.
> 
> Signed-off-by: Jan Kraus <mayosemmel at gmail.com>
> ---
> Changes in configurenetwork (just for understanding):
> 
> @@ -9,6 +9,9 @@
>  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>  # GNU General Public License for more details.
>  
> +BOARD="$(uci get board.model.name)"
> +. /etc/network.$BOARD
> +
>  if ! uci get nodewatcher. at network[0].client_interfaces; then
>      echo "Setting nodewatchers client interfaces to: $CLIENTIF"
>      uci set nodewatcher. at network[0].client_interfaces="$CLIENTIF"
> 
> ---
[..]
> diff --git a/bsp/default/root_file_system/etc/rc.local.tpl b/bsp/default/root_file_system/etc/rc.local.tpl
> index 5a18675..d61d8e5 100755
> --- a/bsp/default/root_file_system/etc/rc.local.tpl
> +++ b/bsp/default/root_file_system/etc/rc.local.tpl
> @@ -59,9 +59,7 @@ if ! uci get board.model.name; then
>      uci set board.model.name=$BOARD
>  fi
>  
> -. /etc/network.$BOARD
> -
> -. /etc/network.sh
> +. /usr/sbin/configurehood
a)
Ich kann nicht erkennen, wieso das hier immer noch als dot-Script
geladen wird. Die Idee das sourcen der network.$BOARD in configurehood
zu verlegen ist gut, damit sollte es ja nicht mehr nötig sein.

b)
Das Ding heißt "configurenetwork" nicht "configurehood", oder?

[..]

Tim





Mehr Informationen über die Mailingliste franken-dev