RE: [PATCH] base-files: reduce `mkdir` and `sed` calls

2021-09-11 Thread Adrian Schmutzler
Hi Paul, > -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Paul Spooren > Sent: Mittwoch, 8. September 2021 23:14 > To: openwrt-devel@lists.openwrt.org > Cc: Paul Spooren > Subject: [PATCH] base-files: re

[PATCH] base-files: reduce `mkdir` and `sed` calls

2021-09-08 Thread Paul Spooren
There is no need in calling `mkdir` every single time, instead give it multiple folders at once. Also there is no need to create a folder (i.e. /etc/) after a sub folder of /etc/ was already created. Additionally there is no need to call the `sed` version replacement script multiple times with