summaryrefslogtreecommitdiffstats
path: root/remote/modules/nvidia_libs/data/addon-init
diff options
context:
space:
mode:
authorSimon Rettberg2014-02-24 19:05:15 +0100
committerSimon Rettberg2014-02-24 19:05:15 +0100
commit5bf2753b66b10658d00eee47a453ba839956f8f9 (patch)
treee6e8fcb5b4f386749187bfbcdebd9db8deab69d5 /remote/modules/nvidia_libs/data/addon-init
parentMerge branch 'master' of simonslx:openslx-ng/tm-scripts (diff)
downloadtm-scripts-5bf2753b66b10658d00eee47a453ba839956f8f9.tar.gz
tm-scripts-5bf2753b66b10658d00eee47a453ba839956f8f9.tar.xz
tm-scripts-5bf2753b66b10658d00eee47a453ba839956f8f9.zip
Integrate prop nvidia drivers into system
If we detect nvidia.ko was loaded in stage31, download nvidia libs via our slx-addon system. It is also ensured that kdm will not start before the nvidia libs have been downloaded and integrated into the running system. For that matter, it was ensured that slx addons are only downloaded when setup-partitions finished running, and a proper /tmp dir is available.
Diffstat (limited to 'remote/modules/nvidia_libs/data/addon-init')
-rwxr-xr-xremote/modules/nvidia_libs/data/addon-init12
1 files changed, 12 insertions, 0 deletions
diff --git a/remote/modules/nvidia_libs/data/addon-init b/remote/modules/nvidia_libs/data/addon-init
new file mode 100755
index 00000000..7e263976
--- /dev/null
+++ b/remote/modules/nvidia_libs/data/addon-init
@@ -0,0 +1,12 @@
+#!/bin/ash
+
+[ -e "/opt/openslx/etc/nvidia.whiteout" ] || exit 66
+
+while read line; do
+ rm -f -- "$line"
+done < "/opt/openslx/etc/nvidia.whiteout"
+
+ldconfig || ldconfig.real
+
+exit 0
+