aboutsummaryrefslogtreecommitdiff
path: root/gobook-xr1-sound
blob: df8e63d8d48f8f1cb1634aac9ec3fb93852e341b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh
### BEGIN INIT INFO
# Provides:          gobook-xr1-sound
# Required-Start:    $syslog $remote_fs
# Required-Stop:     $syslog $remote_fs
# Should-Start:      
# Should-Stop:       
# X-Start-Before:    
# X-Stop-After:      
# Default-Start:     2 3 4 5
# Default-Stop:      1
# Short-Description: GoBook XR-1 Sound
# Description:       Does a little dance with sound modules
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
SCRIPTNAME=gobook-xr1-touchscreen

case "$1" in
  start)
        modprobe snd_hda_codec_realtek
        rmmod snd_hda_intel
        modprobe snd_hda_intel
        rmmod snd_hda_intel
        rmmod snd_hda_codec_realtek
        modprobe snd_hda_intel
	;;
  *)
	echo "Usage: $SCRIPTNAME {start}" >&2
	exit 3
	;;
esac

exit 0