diff options
Diffstat (limited to 'recipes-core/multitech/config/config.init')
| -rw-r--r-- | recipes-core/multitech/config/config.init | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes-core/multitech/config/config.init b/recipes-core/multitech/config/config.init index 874416c..2a40c16 100644 --- a/recipes-core/multitech/config/config.init +++ b/recipes-core/multitech/config/config.init @@ -15,6 +15,19 @@ ppp/chap-secrets \ ppp/peers \ " +# Files used by bluetooth or wifi. +BTWIFIFILES="\ +bluetooth +default/rs9113 \ +default/hostapd \ +dnsmasq.d \ +hosts \ +hostname \ +hostapd.conf \ +modprobe.d \ +wpa_supplicant.conf \ +" + mount_config() { echo "Mounting ${CONFIG_DIR}" mkdir -p ${CONFIG_DIR} @@ -94,6 +107,21 @@ case $1 in ln -sf ${CONFIG_DIR}/$file /etc/$file fi done + + # Move bluetooth wifi stuff to config directory. + # We don't have factory defaults. + for file in ${BTWIFIFILES}; do + if [[ ! -L /etc/$file ]]; then + echo "Creating link to ${CONFIG_DIR}/$file" + dir=$(dirname $file) + if [[ $dir != '.' ]] ; then + mkdir -p "$dir" + fi + mv /etc/$file ${CONFIG_DIR}/$file + ln -sf ${CONFIG_DIR}/$file /etc/$file + fi + done + ;; |
