Install script almost functional.

This commit is contained in:
Linus Miller 2015-11-15 19:30:17 +01:00
parent ccaf185953
commit 7d7599a5f7

View File

@ -1,21 +1,25 @@
#!/bin/bash
DIR=$(dirname $(readlink -f $0));
lightdm_src="/etc/lightdm"
DIRS="/boot/syslinux /etc/lightdm /etc/X11/xorg.conf.d /etc/skel /usr/share/wallpapers"
if [ -d "$DIR$lightdm_src" ]; then
for script in $DIR$lightdm_src/*; do
for dir in $DIRS; do
if [ -d "$DIR$dir" ]; then
for script in $DIR$dir/*; do
echo "Loading xinit script $script"
filename=$(basename $script)
if [ -e "$lightdm_src/$filename" ]; then
if [ -e "$dir/$filename" ]; then
echo "File exists";
rm $dir/$filename
fi
#if [ -x "$script" -a ! -d "$script" ]; then
# . "$script"
#fi
ln -s $script $dir/$filename
done
fi
fi
done
#echo 'Creating link to local zshrc'
#ln -s ~/archlinux-installation/zshrc.local ~/.zshrc.local