Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split code from /etc/lunar/config to /var/lib/lunar/bootstrap
- Loading branch information
1 parent
3e98c26
commit bac454b
Showing
9 changed files
with
45 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
############################################################ | ||
# # | ||
# bootstrap - Lunar initialization code # | ||
# # | ||
############################################################ | ||
# # | ||
# Copyright 2012 by Peter de Ridder under GPLv2 # | ||
# # | ||
############################################################ | ||
|
||
# check if /etc/lunar/config is loaded | ||
if [ -z "$BOOTSTRAP" ] ; then | ||
. /etc/lunar/config | ||
fi | ||
|
||
for FUNCTION in $FUNCTIONS/*.lunar ; do | ||
. $FUNCTION | ||
done | ||
|
||
if [ -s "$LOCAL_CONFIG" ] ; then | ||
. $LOCAL_CONFIG | ||
fi | ||
|
||
# validate and correct config variables from $LOCAL_CONFIG | ||
for DIR_VAR in CONFIG_CACHE DEPENDS_CONFIG BUILD_DIRECTORY DOCUMENT_DIRECTORY DEFAULT_PREFIX MOONBASE FUNCTIONS MENUS PLUGIN_DIR SOUND_DIRECTORY INSTALL_LOGS COMPILE_LOGS MD5SUM_LOGS INSTALL_CACHE SOURCE_CACHE TMPDIR ; do | ||
# dir configuration values shouldn't end with a / | ||
eval $DIR_VAR=\${$DIR_VAR/%\\/} | ||
done | ||
|
||
sound $SOUND | ||
color $COLOR | ||
|
||
for LUNAR_PLUGIN in $PLUGIN_DIR/*.plugin; do | ||
. $LUNAR_PLUGIN | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters