From ebceae82ad8aa6b6eb35f9437677e52f84bccfad Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Thu, 6 Feb 2014 00:05:10 +0100
Subject: [PATCH] gluon-config-mode: don't include sysconfig before the start
 function is called

Otherwise the enable during image create will throw a few error messages
---
 .../gluon-config-mode/files/etc/init.d/gluon-config-mode    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/package/gluon-config-mode/files/etc/init.d/gluon-config-mode b/package/gluon-config-mode/files/etc/init.d/gluon-config-mode
index 552323b1c..a29d26d23 100755
--- a/package/gluon-config-mode/files/etc/init.d/gluon-config-mode
+++ b/package/gluon-config-mode/files/etc/init.d/gluon-config-mode
@@ -10,10 +10,6 @@ config_mode_dnsname=freifunk
 config_mode_dhcp_range=192.168.1.2,192.168.1.254
 
 
-. /lib/functions.sh
-. /lib/gluon/functions/sysconfig.sh
-
-
 delete_interface() {
 	[ "$1" = 'loopback' ] || uci_remove network "$1"
 }
@@ -29,6 +25,8 @@ check_enable() {
 }
 
 start() {
+	. /lib/gluon/functions/sysconfig.sh
+
 	enable=0
 	config_load gluon-config-mode
 	config_foreach check_enable wizard
-- 
GitLab