summaryrefslogtreecommitdiff
path: root/packages/alsa
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2007-06-30 21:42:25 +0000
committerMatthias Hentges <oe@hentges.net>2007-06-30 21:42:25 +0000
commitc641783adbed6bc6734e9b893292d552a3c9f3e2 (patch)
tree717844fec4fd8971eb1c83885cf8a5d5147d7714 /packages/alsa
parent350e6d7ed17fa91e1ddb42ee77ef7175f513a7df (diff)
alsa: Do not run postinst on the build host
Diffstat (limited to 'packages/alsa')
-rw-r--r--packages/alsa/alsa-state.bb9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/alsa/alsa-state.bb b/packages/alsa/alsa-state.bb
index 77ca92407b..495329457c 100644
--- 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 = "r0"
+PR = "r1"
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
}