diff options
Diffstat (limited to 'audio-drivers/alsa-driver/PREPARE')
-rwxr-xr-x | audio-drivers/alsa-driver/PREPARE | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/audio-drivers/alsa-driver/PREPARE b/audio-drivers/alsa-driver/PREPARE new file mode 100755 index 0000000000..fae74cdc7c --- /dev/null +++ b/audio-drivers/alsa-driver/PREPARE @@ -0,0 +1,19 @@ +#simple hack to remove old cache before it becomes a problem +#PREPARE doesn't know version, atleast old version is covered by "prune" +NUMBER="$(grep VERSION= $SCRIPT_DIRECTORY/DETAILS | cut -d= -f2)" +OLDCACHE="$INSTALL_CACHE/$SPELL-$NUMBER-$BUILD.tar.bz2" +if [ -f $OLDCACHE ] ; +then rm -rf $OLDCACHE +fi && +message "${SPELL_COLOR} ${SPELL} won't ARCHIVE installed files${DEFAULT_COLOR}" + +### soundcore test +if [ -e /proc/config.gz ] ; then + if [ `zgrep -c 'CONFIG_SOUND is not set' /proc/config.gz` = 1 ] ; then + message "${SPELL_COLOR} You *must* configure your kernel with CONFIG_SOUND on${DEFAULT_COLOR}" + exit + fi +elif [ `grep -c 'CONFIG_SOUND is not set' /etc/sorcery/local/kernel.config` = 1 ] ; then + message "${SPELL_COLOR} You *must* configure your kernel with CONFIG_SOUND on${DEFAULT_COLOR}" + exit +fi |