~peter-pearse/ubuntu/oneiric/alsa-utils/prop001

« back to all changes in this revision

Viewing changes to debian/init

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-10-20 01:41:24 UTC
  • Revision ID: james.westby@ubuntu.com-20091020014124-m50llkq95lumjw2s
Tags: 1.0.20-2ubuntu6
debian/init: Revert behavior back to 1.0.20-2ubuntu3 as these other
checks were causing problems with storing volume (LP: #454265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
27
27
MYNAME=/etc/init.d/alsa-utils
28
 
FLAG=/var/run/alsa/notstored
29
28
export PULSE_INTERNAL=0
30
29
 
31
30
. /lib/lsb/init-functions
364
363
                sanify_levels "$TARGET_CARD" || EXITSTATUS=1
365
364
                restore_levels "$TARGET_CARD" >/dev/null 2>&1 || :
366
365
        fi
367
 
        mkdir -p $(dirname "$FLAG") && touch $FLAG$TARGET_CARD
368
366
        [ "$TARGET_CARD" = "all" ] && log_action_end_msg_and_exit "$EXITSTATUS"
369
367
        exit $EXITSTATUS
370
368
        ;;
376
374
          *) log_action_begin_msg "Shutting down ALSA card ${TARGET_CARD}" ;;
377
375
        esac
378
376
        card_OK "$TARGET_CARD" || log_action_end_msg_and_exit "$( [ ! "$2" ] ; echo $? ; )" "none loaded"
379
 
        (rm $FLAG$TARGET_CARD >/dev/null 2>&1 && store_levels "$TARGET_CARD") || EXITSTATUS=1
 
377
        store_levels "$TARGET_CARD" || EXITSTATUS=1
380
378
        mute_and_zero_levels "$TARGET_CARD" || EXITSTATUS=1
381
379
        log_action_end_msg_and_exit "$EXITSTATUS"
382
380
        ;;