From 9ea6c3d574f05fd34044036f40e3a509646e7dbf Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 5 Dec 2017 11:12:53 -0600 Subject: Create directories and links for products not yet installed. --- recipes-core/multitech/config/config.init | 15 ++++++++++++--- 1 file 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) -- cgit v1.2.3