--- elwix/config/rc.subr	2017/06/19 21:12:57	1.10.2.6
+++ elwix/config/rc.subr	2017/06/21 14:11:29	1.10.2.7
@@ -4,7 +4,7 @@
 # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
 #    by Michael Pounov <misho@elwix.org>
 #
-# $Id: rc.subr,v 1.10.2.6 2017/06/19 21:12:57 misho Exp $
+# $Id: rc.subr,v 1.10.2.7 2017/06/21 14:11:29 misho Exp $
 #
 
 ### Dont edit this file !!!
@@ -145,9 +145,6 @@ MakeFS_etc()
 
 	chmod 0440 $1/etc/sudoers;
 
-#	chgrp 80 $1/etc/config.xml;
-#	chmod 0660 $1/etc/config.xml;
-
 	mkdir -p $1/etc/mqtt;
 	chgrp -R 883 $1/etc/mqtt;
 	chown -R 883 $1/etc/mqtt;
@@ -204,6 +201,7 @@ MakeFS_boot()
 
 	if [ -r ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf ]; then
 		install -m 644 ${CFGDIR}/boot/loader_${TARGET_ARCH}.conf $1/boot/loader.conf;
+		install -m 644 ${CFGDIR}/boot/loader.conf.local $1/boot/loader.conf.local;
 	fi;
 }