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 2253 - (show annotations) (download)
Mon Jan 13 14:17:53 2014 UTC (10 years, 3 months ago) by niro
File size: 528 byte(s)
-renamed MCLIBDIR -> MCORE_LIBDIR
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 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