summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xos-plugins/plugins/xserver/files/ati-install.sh2
-rwxr-xr-xos-plugins/plugins/xserver/files/nvidia-install.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/os-plugins/plugins/xserver/files/ati-install.sh b/os-plugins/plugins/xserver/files/ati-install.sh
index 5fd975bc..8ead3b63 100755
--- a/os-plugins/plugins/xserver/files/ati-install.sh
+++ b/os-plugins/plugins/xserver/files/ati-install.sh
@@ -42,7 +42,7 @@ cp 2.6.x/Makefile .
uname_r=$(find /lib/modules/2.6* -maxdepth 0|sed 's,/lib/modules/,,g'|sort|tail -n1)
sed -i "s,^KVER.*$,KVER = ${uname_r}," Makefile
# TODO: less verbose
-make -C /lib/modules/2.6.18.8-0.9-bigsmp/build M=$(pwd) GCC_VER_MAJ=${GCC_VERSION}
+make -C /lib/modules/${uname_r}/build M=$(pwd) GCC_VER_MAJ=${GCC_VERSION}
cd /opt/openslx/plugin-repo/xserver/ati
diff --git a/os-plugins/plugins/xserver/files/nvidia-install.sh b/os-plugins/plugins/xserver/files/nvidia-install.sh
index 2439f5a3..b07cd457 100755
--- a/os-plugins/plugins/xserver/files/nvidia-install.sh
+++ b/os-plugins/plugins/xserver/files/nvidia-install.sh
@@ -19,7 +19,8 @@ cd ${TMP_FOLDER}
${PKG_FOLDER}/${FILE} -x > /dev/null
#todo: check if it extracted like it should...
-NVPATH=${TMP_FOLDER}/${FILE/.run/}
+FILEPATH=$(echo ${FILE}|sed 's/.run//')
+NVPATH="${TMP_FOLDER}/${FILEPATH}"
mv "${NVPATH}/usr" "${PLUGIN_PATH}/nvidia"
echo " * prepare kernel module"