diff options
author | John Klug <john.klug@multitech.com> | 2017-12-05 11:12:53 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-12-05 11:12:53 -0600 |
commit | 9ea6c3d574f05fd34044036f40e3a509646e7dbf (patch) | |
tree | 763bdd9a63dfa6a5b795680aeed880132b64f310 | |
parent | 4de682c7f15390eaf982b2db1573ec65020f70b4 (diff) | |
download | meta-mlinux-9ea6c3d574f05fd34044036f40e3a509646e7dbf.tar.gz meta-mlinux-9ea6c3d574f05fd34044036f40e3a509646e7dbf.tar.bz2 meta-mlinux-9ea6c3d574f05fd34044036f40e3a509646e7dbf.zip |
Create directories and links for products not yet installed.3.3.17
-rw-r--r-- | recipes-core/multitech/config/config.init | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/recipes-core/multitech/config/config.init b/recipes-core/multitech/config/config.init index 3bdd78b..5046050 100644 --- a/recipes-core/multitech/config/config.init +++ b/recipes-core/multitech/config/config.init @@ -17,15 +17,15 @@ ppp/peers \ # Files used by bluetooth or wifi. BTWIFIFILES="\ -bluetooth \ +bluetooth/ \ default/bluetooth \ default/hostapd \ default/rs9113 \ -dnsmasq.d \ +dnsmasq.d/ \ hosts \ hostname \ hostapd.conf \ -modprobe.d \ +modprobe.d/ \ wpa_supplicant.conf \ " @@ -129,6 +129,15 @@ case $1 in fi for file in ${BTWIFIFILES}; do + # If last character is /, make the CONFIG directory. + if [[ ${file: -1} == / ]] ; then + file=${file%?} + echo directory $file operations + if ! [[ -d ${CONFIG_DIR}/$file ]] ; then + rm -f ${CONFIG_DIR}/$file 2>/dev/null || true + mkdir ${CONFIG_DIR}/$file + fi + fi if [[ ! -L /etc/$file ]]; then echo "Creating link to ${CONFIG_DIR}/$file" dir=$(dirname $file) |