aboutsummaryrefslogtreecommitdiff
path: root/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init.sh')
-rwxr-xr-xinit.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/init.sh b/init.sh
index 331c1ae..30532f9 100755
--- a/init.sh
+++ b/init.sh
@@ -97,6 +97,7 @@ do
printf "\tOK!\n"
fi
done
+
# Find libs and create symlinks
libfiles=$(ls -1 $(pwd)/lib)
for b in $libfiles
@@ -118,3 +119,25 @@ do
printf "\tOK!\n"
fi
done
+#
+# Find modules and create symlinks
+modfiles=$(ls -1 $(pwd)/modules)
+for m in $modfiles
+do
+ if [ ! -L $AK_MODULESDIR/$m ]
+ then
+ printf "Creating symlink to %s..." "$m"
+ ln -s $(pwd)/modules/$b $AK_MODULESDIR/$m
+ if [ $? -ne 0 ]
+ then
+ if [ -L $AK_MODULESDIR/$m ]
+ then
+ printf "\tAlready exists!\n"
+ exit 1
+ fi
+ printf "\tFailed!\n"
+ exit 1
+ fi
+ printf "\tOK!\n"
+ fi
+done