aboutsummaryrefslogtreecommitdiff
path: root/tools/XBMCLive/SDK/intelOnlyHook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/XBMCLive/SDK/intelOnlyHook.sh')
-rwxr-xr-xtools/XBMCLive/SDK/intelOnlyHook.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/XBMCLive/SDK/intelOnlyHook.sh b/tools/XBMCLive/SDK/intelOnlyHook.sh
new file mode 100755
index 0000000000..0443550ec3
--- /dev/null
+++ b/tools/XBMCLive/SDK/intelOnlyHook.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# Remove unneeded files
+rm $WORKPATH/buildLive/Files/binary_local-includes/live/*.module
+
+export DONOTBUILDRESTRICTEDDRIVERS=1
+
+# Modify menu.lst
+if [ -f $WORKPATH/buildLive/Files/binary_grub/menu.lst ]; then
+ sed -i '/## BEGIN NVIDIA ##/,/## END NVIDIA ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+ sed -i '/## BEGIN AMD ##/,/## END AMD ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+fi
+
+# Modify grub.cfg
+if [ -f $WORKPATH/buildLive/Files/binary_grub/menu.lst ]; then
+ sed -i '/## BEGIN NVIDIA ##/,/## END NVIDIA ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+ sed -i '/## BEGIN AMD ##/,/## END AMD ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+fi
+
+# Modify syslinux menu
+if [ -f $WORKPATH/buildLive/Files/binary_syslinux/live.cfg ]; then
+ sed -i '/## BEGIN NVIDIA ##/,/## END NVIDIA ##/d' $WORKPATH/buildLive/Files/binary_syslinux/live.cfg
+ sed -i '/## BEGIN AMD ##/,/## END AMD ##/d' $WORKPATH/buildLive/Files/binary_syslinux/live.cfg
+fi