Lines 47-61
Link Here
|
47 |
(cd /usr/lib/oss/build ; rm -f ali5455.c allegro.c als300.c als4000.c apci97.c atiaudio.c audigyls.c audioloop.c audiopci.c cmi8788.c cmpci.c cs4280.c cs4281.c digi32.c digi96.c emu10k1x.c envy24.c envy24ht.c fm801.c geode.c hdaudio.c hdsp.c ich.c imux.c maestro.c neomagic.c ossusb.c riptide.c s3vibes.c sblive.c sbxfi.c softoss.c solo.c sonorus.c trident.c via8233.c via97.c vmix.c vortex.c ymf7xx.c) |
47 |
(cd /usr/lib/oss/build ; rm -f ali5455.c allegro.c als300.c als4000.c apci97.c atiaudio.c audigyls.c audioloop.c audiopci.c cmi8788.c cmpci.c cs4280.c cs4281.c digi32.c digi96.c emu10k1x.c envy24.c envy24ht.c fm801.c geode.c hdaudio.c hdsp.c ich.c imux.c maestro.c neomagic.c ossusb.c riptide.c s3vibes.c sblive.c sbxfi.c softoss.c solo.c sonorus.c trident.c via8233.c via97.c vmix.c vortex.c ymf7xx.c) |
48 |
echo |
48 |
echo |
49 |
echo |
49 |
echo |
50 |
echo Error: Older OSS version seems to be installed in your system. |
50 |
echo "Error: Older OSS version seems to be installed in your system." |
51 |
echo Please remove previous /usr/lib/oss directory and the install OSS v4.1 again. |
51 |
echo "Please remove previous /usr/lib/oss directory and the install OSS v4.1 again." |
52 |
soundoff |
52 |
soundoff |
53 |
exit 127 |
53 |
exit 127 |
54 |
fi |
54 |
fi |
55 |
|
55 |
|
56 |
if ! test -f $OSSLIBDIR/objects/osscore.o |
56 |
if ! test -f $OSSLIBDIR/objects/osscore.o |
57 |
then |
57 |
then |
58 |
echo Error: OSS core module for $REGPARM kernel is not available in $OSSLIBDIR/objects |
58 |
echo "Error: OSS core module for $REGPARM kernel is not available in $OSSLIBDIR/objects" |
59 |
exit 1 |
59 |
exit 1 |
60 |
fi |
60 |
fi |
61 |
|
61 |
|
Lines 63-128
Link Here
|
63 |
echo OSS build environment set up for $REGPARM kernels |
63 |
echo OSS build environment set up for $REGPARM kernels |
64 |
|
64 |
|
65 |
KERNELDIR=/lib/modules/$UNAME/build |
65 |
KERNELDIR=/lib/modules/$UNAME/build |
66 |
UBUNTUPACKAGES="" |
|
|
67 |
|
68 |
OK=1 |
69 |
echo |
70 |
|
71 |
if test "`which gcc 2>/dev/null` " = " " |
72 |
then |
73 |
echo " gcc" |
74 |
UBUNTUPACKAGES="$UBUNTUPACKAGES gcc" |
75 |
OK=0 |
76 |
fi |
77 |
|
78 |
if test "`which make 2>/dev/null` " = " " |
79 |
then |
80 |
echo " make" |
81 |
UBUNTUPACKAGES="$UBUNTUPACKAGES make" |
82 |
OK=0 |
83 |
fi |
84 |
|
85 |
if test "`which ld 2>/dev/null` " = " " |
86 |
then |
87 |
echo " binutils" |
88 |
UBUNTUPACKAGES="$UBUNTUPACKAGES binutils" |
89 |
OK=0 |
90 |
fi |
91 |
|
92 |
if ! test -f /usr/include/stdio.h |
93 |
then |
94 |
echo " C library headers (glibc-devel or build-essential)" |
95 |
OK=0 |
96 |
UBUNTUPACKAGES="$UBUNTUPACKAGES build-essentials" |
97 |
fi |
98 |
|
99 |
if test "$OK " = "0 " |
100 |
then |
101 |
echo |
102 |
echo 'Error: The above Linux package(s) seem to be missing from your system.' |
103 |
echo ' Please install them and then try to install OSS again.' |
104 |
echo |
105 |
echo Please refer to the documentation of your Linux distribution if you |
106 |
echo have problems with installing the packages. |
107 |
echo |
108 |
|
109 |
if grep -q Ubuntu /etc/issue # Ubuntu? |
110 |
then |
111 |
echo You can use the following commands to download and install all |
112 |
echo required packages: |
113 |
echo |
114 |
|
115 |
for n in $UBUNTUPACKAGES |
116 |
do |
117 |
echo " apt-get install $n" |
118 |
done |
119 |
|
120 |
exit 1 |
121 |
fi |
122 |
|
123 |
exit 1 |
124 |
fi |
125 |
|
126 |
|
66 |
|
127 |
if ! test -f $KERNELDIR/Makefile && ! test -f /lib/modules/$UNAME/sources/Makefile |
67 |
if ! test -f $KERNELDIR/Makefile && ! test -f /lib/modules/$UNAME/sources/Makefile |
128 |
then |
68 |
then |
Lines 132-172
Link Here
|
132 |
echo ' Please install the kernel development package if linking the' |
72 |
echo ' Please install the kernel development package if linking the' |
133 |
echo ' OSS modules fails.' |
73 |
echo ' OSS modules fails.' |
134 |
echo |
74 |
echo |
135 |
echo The kernel development package may be called kernel-devel, kernel-smp-devel, |
75 |
echo 'Emerge some kernel sources, compile, install and boot them!' |
136 |
echo kernel-sources, kernel-headers or something like that. Please refer |
|
|
137 |
echo to the documentation of your Linux distribution if there are any |
138 |
echo difficulties in installing the kernel/driver development environment. |
139 |
echo |
140 |
|
141 |
if grep -q 'Fedora Core release' /etc/issue |
142 |
then |
143 |
if uname -v|grep -q SMP |
144 |
then |
145 |
echo Assuming that you are using Fedora Core 5 or later |
146 |
echo "the right kernel source package (RPM) is probably called" |
147 |
echo kernel-smp-devel. |
148 |
else |
149 |
echo Assuming that you are using Fedora Core 5 or later |
150 |
echo "the right kernel source package (RPM) is probably called" |
151 |
echo kernel-devel. |
152 |
fi |
153 |
else |
154 |
echo For your Linux distribution the right kernel source package |
155 |
echo might be kernel-source. |
156 |
fi |
157 |
echo |
158 |
|
159 |
if grep -q Ubuntu /etc/issue || grep -q Debian /etc/issue # Ubuntu or Debian? |
160 |
then |
161 |
echo Under Ubuntu you may need to prepare the kernel environment |
162 |
echo after downloading the kernel sources using |
163 |
echo |
164 |
echo " sudo apt-get install linux-headers-$UNAME" |
165 |
echo " cd /usr/src/linux-headers-$UNAME/" |
166 |
# echo " sudo make prepare" |
167 |
# echo " sudo make prepare scripts" |
168 |
echo |
169 |
fi |
170 |
fi |
76 |
fi |
171 |
|
77 |
|
172 |
if ! test -d /lib/modules/$UNAME |
78 |
if ! test -d /lib/modules/$UNAME |
Lines 289-321
Link Here
|
289 |
mkdir /etc/init.d |
195 |
mkdir /etc/init.d |
290 |
fi |
196 |
fi |
291 |
|
197 |
|
292 |
rm -f /etc/init.d/oss /etc/rc.d/rc3.d/S89oss /etc/rc3.d/S89oss |
|
|
293 |
cp -f $OSSLIBDIR/etc/S89oss /etc/init.d/oss |
294 |
|
295 |
chmod 744 /etc/init.d/oss |
296 |
|
297 |
if test -x /sbin/chkconfig |
298 |
then |
299 |
/sbin/chkconfig oss on > /dev/null 2>&1 |
300 |
else |
301 |
if test -x /usr/sbin/update-rc.d |
302 |
then |
303 |
/usr/sbin/update-rc.d oss defaults > /dev/null 2>&1 |
304 |
else |
305 |
if test -d etc/rc.d/rc3.d |
306 |
then |
307 |
rm -f /etc/rc.d/rc3.d/S89oss |
308 |
ln -s /etc/init.d/oss /etc/rc.d/rc3.d/S89oss |
309 |
else |
310 |
if test -d /etc/rc3.d |
311 |
then |
312 |
rm -f /etc/rc3.d/S89oss |
313 |
ln -s /etc/init.d/oss /etc/rc3.d/S89oss |
314 |
fi |
315 |
fi |
316 |
fi |
317 |
fi |
318 |
|
319 |
# Install ALSA interface module (Cuckoo) |
198 |
# Install ALSA interface module (Cuckoo) |
320 |
#(cd $OSSLIBDIR/cuckoo && make clean) > /dev/null 2>&1 |
199 |
#(cd $OSSLIBDIR/cuckoo && make clean) > /dev/null 2>&1 |
321 |
#if (cd $OSSLIBDIR/cuckoo && make install) > /var/log/cuckoo.log 2>&1 |
200 |
#if (cd $OSSLIBDIR/cuckoo && make install) > /var/log/cuckoo.log 2>&1 |