Annotation of /mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox-rebuild-autostart.in
Parent Directory
|
Revision Log
Revision 2329 -
(hide annotations)
(download)
Fri Jul 11 13:44:32 2014 UTC (9 years, 11 months ago) by niro
File size: 687 byte(s)
Fri Jul 11 13:44:32 2014 UTC (9 years, 11 months ago) by niro
File size: 687 byte(s)
-create //.fluxbox directory if not exist
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 | niro | 2329 | if [ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox ] |
15 | then | ||
16 | install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox | ||
17 | fi | ||
18 | niro | 2150 | clearconfig |
19 | for file in $(find ${MROOT}/${MCORE_CONFIG_PATH}/fluxbox/autostart -type f) | ||
20 | do | ||
21 | addconfig "$(< ${file})" | ||
22 | done | ||
23 | |||
24 | # add a newline (maybe there is no crlf in the footer) | ||
25 | addconfig |