Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox-rebuild-autostart.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2253 - (hide annotations) (download)
Mon Jan 13 14:17:53 2014 UTC (10 years, 5 months ago) by niro
File size: 528 byte(s)
-renamed MCLIBDIR -> MCORE_LIBDIR
1 niro 2150 #!/bin/bash
2    
3 niro 2253 MCORE_LIBDIR="@@MCORE_LIBDIR@@"
4 niro 2212 source @@SYSCONFDIR@@/mcore/mcore.conf
5 niro 2253 source ${MCORE_LIBDIR}/include/common.global.class
6 niro 2150
7     if [ ! -d ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart ]
8     then
9     echo "'${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart' does not exist."
10     exit 1
11     fi
12    
13     CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox/apps"
14     clearconfig
15     for file in $(find ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart -type f)
16     do
17     addconfig "$(< ${file})"
18     done
19    
20     # add a newline (maybe there is no crlf in the footer)
21     addconfig