Annotation of /mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox-rebuild-autostart.in
Parent Directory | Revision Log
Revision 2212 -
(hide annotations)
(download)
Fri Jan 10 23:19:49 2014 UTC (10 years, 8 months ago) by niro
File size: 520 byte(s)
Fri Jan 10 23:19:49 2014 UTC (10 years, 8 months ago) by niro
File size: 520 byte(s)
-renamed config.rc to mcore.conf
1 | niro | 2150 | #!/bin/bash |
2 | |||
3 | MCLIBDIR="@@MCORE_LIBDIR@@" | ||
4 | niro | 2212 | source @@SYSCONFDIR@@/mcore/mcore.conf |
5 | niro | 2150 | source ${MCLIBDIR}/include/common.global.class |
6 | |||
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 |