adding script into repository
authorJohn P. Davis <zhen@gentoo.org>
Fri, 23 Jul 2004 16:35:04 +0000 (16:35 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Fri, 23 Jul 2004 16:35:04 +0000 (16:35 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@421 d1e1f19c-881f-0410-ab34-b69fee027534

livecd/runscript-support/gamecdfs-update.sh [new file with mode: 0644]

diff --git a/livecd/runscript-support/gamecdfs-update.sh b/livecd/runscript-support/gamecdfs-update.sh
new file mode 100644 (file)
index 0000000..1f237e0
--- /dev/null
@@ -0,0 +1,52 @@
+#!/bin/bash
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/gamecdfs-update.sh,v 1.1 2004/07/23 16:35:04 zhen Exp $
+
+# These variables are to be used for creating the menu entry and also to tell
+# the CD what to execute
+GAME_NAME="Unreal Tournament 2004 Demo"
+GAME_SHORT_NAME="UT2004 Demo"
+GAME_EXECUTABLE="/usr/games/bin/ut2004demo"
+
+sed -i -e 's:localhost:localhost livecd:' /etc/hosts
+sed -i -e 's:GAME_NAME:${GAME_NAME}:' /etc/motd
+sed -i -e 's:GAME_EXECUTABLE:$GAME_EXECUTABLE:' /etc/X11/xinit/xinitrc
+
+[ -x /sbin/openglify ] && /sbin/openglify
+touch /etc/asound.state # /etc/startx
+
+cat > /usr/share/fluxbox/menu << EOF
+
+[begin] (Gentoo)
+       [exec] (GAME_SHORT_NAME) {GAME_EXECUTABLE}
+       [exec] (Mozilla Firefox) {firefox http://www.gentoo.org}
+       [exec] (Volume) {xterm -e "alsamixer"}
+
+[submenu] (Setup Network)
+       [exec] (net-setup eth0) {xterm -e "net-setup eth0"}
+       [exec] (net-setup eth1) {xterm -e "net-setup eth1"}
+
+[end]
+
+[submenu] (Terminals)
+       [exec] (xterm) {xterm -fg white -bg black}
+[end]
+
+[submenu] (Settings)
+       [workspaces]   (Workspace List)
+[submenu] (Styles) {Choose a style...}
+       [stylesdir] (/usr/share/fluxbox/styles)
+[end]
+
+       [config] (Configure)
+       [reconfig] (Reload config)
+[end]
+
+       [restart] (Restart)
+[end]
+EOF
+
+sed -i -e 's:GAME_SHORT_NAME:${GAME_SHORT_NAME}:' \
+    -i -e 's:GAME_EXECUTABLE:${GAME_EXECUTABLE}:' \
+    /usr/share/fluxbox/menu