| 1 | #!/bin/bash |
1 | #!/bin/bash |
| 2 | # Copyright 1999-2004 Gentoo Technologies, Inc. |
2 | # Copyright 1999-2004 Gentoo Technologies, Inc. |
| 3 | # Distributed under the terms of the GNU General Public License, v2 or later |
3 | # Distributed under the terms of the GNU General Public License, v2 or later |
| 4 | # Author: Martin Schlemmer <azarah@gentoo.org> |
4 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 5 | # $Header: /var/cvsroot/gentoo/src/livecd-tools/Attic/opengl-update-livecd,v 1.1 2004/11/19 16:11:24 wolf31o2 Exp $ |
5 | # $Header: /var/cvsroot/gentoo/src/livecd-tools/Attic/opengl-update-livecd,v 1.2 2005/01/11 12:06:36 wolf31o2 Exp $ |
| 6 | |
6 | |
| 7 | source /etc/init.d/functions.sh |
7 | source /etc/init.d/functions.sh |
| 8 | |
8 | |
| 9 | if [ "\`id -u\`" -ne 0 ] |
9 | if [ \`id -u\` -ne 0 ] |
| 10 | then |
10 | then |
| 11 | eerror "\${0}: must be root." |
11 | eerror "\${0}: must be root." |
| 12 | exit 1 |
12 | exit 1 |
| 13 | fi |
13 | fi |
| 14 | |
14 | |
| … | |
… | |
| 34 | |
34 | |
| 35 | FOO |
35 | FOO |
| 36 | exit 1 |
36 | exit 1 |
| 37 | } |
37 | } |
| 38 | |
38 | |
| 39 | if [ "\$#" -ne 1 ] |
39 | if [ \$# -ne 1 ] |
| 40 | then |
40 | then |
| 41 | usage |
41 | usage |
| 42 | fi |
42 | fi |
| 43 | if [ ! -d /usr/lib/opengl/\${1} ] |
43 | if [ ! -d /usr/lib/opengl/\${1} ] |
| 44 | then |
44 | then |