git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
350e6d7
)
alsa: Do not run postinst on the build host
author
Matthias Hentges
<oe@hentges.net>
Sat, 30 Jun 2007 21:42:25 +0000
(21:42 +0000)
committer
Matthias Hentges
<oe@hentges.net>
Sat, 30 Jun 2007 21:42:25 +0000
(21:42 +0000)
packages/alsa/alsa-state.bb
patch
|
blob
|
history
diff --git
a/packages/alsa/alsa-state.bb
b/packages/alsa/alsa-state.bb
index
77ca924
..
4953294
100644
(file)
--- a/
packages/alsa/alsa-state.bb
+++ b/
packages/alsa/alsa-state.bb
@@
-11,7
+11,7
@@
DESCRIPTION = "Default ALSA configuration"
LICENSE = "GPL"
PV = "0.0.4"
-PR = "r
0
"
+PR = "r
1
"
SRC_URI = "file://asound.state \
file://alsa-state"
@@
-31,9
+31,12
@@
do_install() {
FILES_${PN} = "${sysconfdir}/*"
pkg_postinst_${PN}() {
- if test -
x /usr/sbin/alsactl
+ if test -
z "$D"
then
- /usr/sbin/alsactl -f ${sysconfdir}/asound.state restore
+ if test -x /usr/sbin/alsactl
+ then
+ /usr/sbin/alsactl -f ${sysconfdir}/asound.state restore
+ fi
fi
}