aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorlcapriotti <lcapriotti@svn>2010-04-23 15:19:07 +0000
committerlcapriotti <lcapriotti@svn>2010-04-23 15:19:07 +0000
commit48b545583a08bececc6ce89c9f165b36ee108030 (patch)
tree4b3a6c060cb7da0efd269e0dbc76901bbad1f2b6 /tools
parentdacfebd6147f4e60fd8e3bd919d13084305d3442 (diff)
handle grub2 menu generation properly (lucid)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29457 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rwxr-xr-xtools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu.karmic-variant (renamed from tools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu)0
-rw-r--r--tools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu.lucid-variant37
2 files changed, 37 insertions, 0 deletions
diff --git a/tools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu b/tools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu.karmic-variant
index 65989b4912..65989b4912 100755
--- a/tools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu
+++ b/tools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu.karmic-variant
diff --git a/tools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu.lucid-variant b/tools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu.lucid-variant
new file mode 100644
index 0000000000..7d1eeb63a1
--- /dev/null
+++ b/tools/XBMCLive/SDK/buildDEBs/xbmclive-installhelpers/finish-install.d/91modifyGrubMenu.lucid-variant
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+# Copyright (C) 2005-2008 Team XBMC
+# http://www.xbmc.org
+#
+# This Program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This Program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with XBMC; see the file COPYING. If not, write to
+# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+# http://www.gnu.org/copyleft/gpl.html
+
+if [ -f /target/boot/grub/grub.cfg ]; then
+ # Modify /etc/default/grub
+
+ # Comment out defaults if not done already
+ sed -i -e 's/^GRUB_CMDLINE_LINUX_DEFAULT/#GRUB_CMDLINE_LINUX_DEFAULT/' /etc/default/grub
+ sed -i -e 's/^GRUB_GFXMODE/#GRUB_GFXMODE/' /etc/default/grub
+ sed -i -e 's/^GRUB_GFXPAYLOAD_LINUX/#GRUB_GFXPAYLOAD_LINUX/' /etc/default/grub
+
+ # Set our own defaults
+ echo >> /etc/default/grub
+ echo '# Defaults from XBMC Installation' >> /etc/default/grub
+ echo 'GRUB_CMDLINE_LINUX_DEFAULT="quiet splash xbmc=autostart,nodiskmount,setvolume loglevel=0 video=vesafb"' >> /etc/default/grub
+ echo 'GRUB_GFXMODE="1280x768x32;1280x720x32;1024x768x32;800x600x32;640x480x32;1280x768;1280x720;1024x768;800x600;640x480"' >> /etc/default/grub
+ echo 'GRUB_GFXPAYLOAD_LINUX=keep' >> /etc/default/grub
+
+ in-target update-grub
+fi