PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/apm/scripts.d/alsa

http://github.com/brinkman83/bashrc
Shell | 11 lines | 5 code | 3 blank | 3 comment | 3 complexity | f83b2095c1d2a46d7eac161c5ff0373d MD5 | raw file
 1#!/bin/sh
 2#
 3# apmd proxy script for ALSA
 4
 5[ -x /sbin/alsactl ] || exit 0
 6
 7case "$1,$2" in
 8	suspend,*) /sbin/alsactl store && /sbin/alsa suspend ;;
 9	resume,suspend) /sbin/alsa resume && /sbin/alsactl restore ;;
10esac
11