Lines 1-5
Link Here
|
1 |
#!/sbin/runscript |
1 |
#!/sbin/runscript |
2 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound-init-20070218,v 1.3 2007/02/18 14:00:58 flameeyes Exp $ |
2 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound-init-20070218,v 1.1 2007/02/18 02:00:16 flameeyes Exp $ |
3 |
# |
3 |
# |
4 |
# Gentoo users: add this script to 'boot' run level. |
4 |
# Gentoo users: add this script to 'boot' run level. |
5 |
# ================================================== |
5 |
# ================================================== |
Lines 186-196
Link Here
|
186 |
done |
186 |
done |
187 |
|
187 |
|
188 |
push_opts=$(shopt -p nullglob); shopt -s nullglob |
188 |
push_opts=$(shopt -p nullglob); shopt -s nullglob |
189 |
for ossfile in "${alsastatedir}"/oss/card?_pcm??; do |
189 |
|
|
|
190 |
pushd "${alsastatedir}/oss" >/dev/null |
191 |
for ossfile in card?_pcm??; do |
190 |
# We use cat because I'm not sure if cp works properly on /proc |
192 |
# We use cat because I'm not sure if cp works properly on /proc |
191 |
local procfile=${ossfile##${alsastatedir}/oss} |
193 |
cat "${alsastatedir}/oss/${ossfile}" > /proc/asound/${ossfile/_/\/}/oss |
192 |
cat "${ossfile}" > /proc/asound/${procfile/_/\/}/oss |
|
|
193 |
done |
194 |
done |
|
|
195 |
popd > /dev/null |
196 |
|
194 |
eval $push_opts |
197 |
eval $push_opts |
195 |
|
198 |
|
196 |
eend 0 |
199 |
eend 0 |
Lines 230-241
Link Here
|
230 |
fi |
233 |
fi |
231 |
fi |
234 |
fi |
232 |
|
235 |
|
233 |
if [[ ! -d /proc/asound ]]; then |
|
|
234 |
eerror "ALSA failed to load." |
235 |
eend 1 |
236 |
return 1 |
237 |
fi |
238 |
|
239 |
[[ ${RESTORE_ON_START} == "yes" ]] && restore |
236 |
[[ ${RESTORE_ON_START} == "yes" ]] && restore |
240 |
} |
237 |
} |
241 |
|
238 |
|