File: preinst

package info (click to toggle)
alsa-driver 0.9%2B0beta12-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,524 kB
  • ctags: 29
  • sloc: sh: 982; makefile: 283
file content (16 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh

conffile=/etc/modules.conf

if [ -f /etc/modutils/alsa ]; then
	exit 0
fi

if grep -q '### BEGIN ALSA SETUP ###' $conffile; then
	echo "I found an existing ALSA-configuration in $conffile. I will"
	echo "extract that and move it to the new location (/etc/modutils/alsa)."

	sed -e '/### BEGIN ALSA SETUP ###/,\/### END ALSA SETUP ###/d' $conffile > /etc/modutils/alsa
fi

#DEBHELPER#