From: Hans Dedecker Date: Thu, 30 Apr 2020 19:29:09 +0000 (+0200) Subject: base-files: generate config files with correct permissions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ad27c133eb606ee39fa346b7bdb26c1764ee869e;p=openwrt%2Fstaging%2Fblocktrron.git base-files: generate config files with correct permissions As touch creates files with permission 0644 use umask to create config files with permission 0600 to be inline with INSTALL_CONF Signed-off-by: Hans Dedecker --- diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index 3bf48d7216..abb1388ba1 100755 --- a/package/base-files/files/bin/config_generate +++ b/package/base-files/files/bin/config_generate @@ -426,6 +426,8 @@ generate_gpioswitch() { json_init json_load "$(cat ${CFG})" +umask 077 + if [ ! -s /etc/config/network ]; then touch /etc/config/network generate_static_network