From 1241a0374e61a8eec34848d19e2cfd02462651ba Mon Sep 17 00:00:00 2001 From: Ghost1227 Date: Mon, 9 Nov 2009 07:16:46 -0600 Subject: [PATCH] Initial commit --- install | 7 ++++--- src/cdm | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/install b/install index dac25e6..4674145 100755 --- a/install +++ b/install @@ -7,7 +7,8 @@ else cd src mkdir -p /usr/{bin,share/cdm} install -m755 cdm /usr/bin/ - cp -Rf cdmrc skel themes /usr/share/cdm/ - echo "CDM configuration is done through /usr/share/cdm/cdmrc" - echo "Replace ~/.xinitrc and ~/.bash_profile with the skel files in /usr/share/cdm/skel for each user." + install -Dm644 cdmrc /etc/cdmrc + cp -Rf skel themes /usr/share/cdm/ + echo "CDM configuration is done through /etc/cdmrc" + echo "Replace ~/.xinitrc and ~/.bash_profile with the files in /usr/share/cdm/skel for each user." fi diff --git a/src/cdm b/src/cdm index 4cf02af..e6e2fa7 100755 --- a/src/cdm +++ b/src/cdm @@ -35,8 +35,8 @@ if [[ $EUID -eq 0 ]]; then fi # Source cdm configuration -if [ -f /usr/share/cdm/cmdrc ]; then - source /usr/share/cdm/cdmrc +if [ -f /etc/cmdrc ]; then + source /etc/cdmrc else echo -e "${error} ERROR: A valid cdm configuration was not found!${reset}" echo -e "${info} Logging out.${reset}"