#!/bin/bash MCLIBDIR="@@MCORE_LIBDIR@@" source @@SYSCONFDIR@@/mcore/mcore.conf source ${MCLIBDIR}/include/common.global.class if [ ! -d ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart ] then echo "'${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart' does not exist." exit 1 fi CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox/apps" clearconfig for file in $(find ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart -type f) do addconfig "$(< ${file})" done # add a newline (maybe there is no crlf in the footer) addconfig