Install script almost functional.
This commit is contained in:
parent
ccaf185953
commit
7d7599a5f7
18
install.sh
18
install.sh
@ -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
|
||||
done
|
||||
|
||||
|
||||
#echo 'Creating link to local zshrc'
|
||||
#ln -s ~/archlinux-installation/zshrc.local ~/.zshrc.local
|
||||
|
||||
Loading…
Reference in New Issue
Block a user