Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2329 - (show annotations) (download)
Fri Jul 11 13:44:32 2014 UTC (9 years, 9 months ago) by niro
File size: 687 byte(s)
-create //.fluxbox directory if not exist
1 #!/bin/bash
2
3 MCORE_LIBDIR="@@MCORE_LIBDIR@@"
4 source @@SYSCONFDIR@@/mcore/mcore.conf
5 source ${MCORE_LIBDIR}/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 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 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