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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
diff -ur hsfmodem-7.68.00.12x86_64full.orig/modules/Makefile hsfmodem-7.68.00.12x86_64full/modules/Makefile
--- hsfmodem-7.68.00.12x86_64full.orig/modules/Makefile 2008-08-01 21:22:36.000000000 +0000
+++ hsfmodem-7.68.00.12x86_64full/modules/Makefile 2008-08-01 21:22:08.000000000 +0000
@@ -145,7 +145,7 @@
ifeq ($(ON_BUILD_SYSTEM)-$(CONFIG_SND_HDA_INTEL),no-)
# On Ubuntu Gutsy (7.10), the HDA modules are not included in linux-image but in a seprarate package
# and CONFIG_SND_HDA_INTEL is not enabled in the kernel .config file
-CONFIG_SND_HDA_INTEL=$(shell modprobe -n snd-hda-intel > /dev/null 2>&1 && echo y || echo n)
+# CONFIG_SND_HDA_INTEL=$(shell modprobe -n snd-hda-intel > /dev/null 2>&1 && echo y || echo n)
endif
else
diff -ur hsfmodem-7.68.00.12x86_64full.orig/scripts/cnxtconfig.in hsfmodem-7.68.00.12x86_64full/scripts/cnxtconfig.in
--- hsfmodem-7.68.00.12x86_64full.orig/scripts/cnxtconfig.in 2008-08-01 21:22:36.000000000 +0000
+++ hsfmodem-7.68.00.12x86_64full/scripts/cnxtconfig.in 2008-08-01 21:22:08.000000000 +0000
@@ -1973,9 +1973,9 @@
if [ -d /etc/udev/rules.d ]; then
rm -f /etc/udev/rules.d/00-@CNXTTARGET@.rules
if [ "@CNXTDRIVER@" = "dgc" ]; then
- echo 'KERNEL=="ttyACM0", SYMLINK="modem"' > /etc/udev/rules.d/00-@CNXTTARGET@.rules
+ echo 'KERNEL=="ttyACM0", SYMLINK="modem", GROUP="dialout"' > /etc/udev/rules.d/00-@CNXTTARGET@.rules
else
- echo 'KERNEL=="ttyS@CNXTSERDEV@0", SYMLINK="modem"' > /etc/udev/rules.d/00-@CNXTTARGET@.rules
+ echo 'KERNEL=="ttyS@CNXTSERDEV@0", SYMLINK="modem", GROUP="dialout"' > /etc/udev/rules.d/00-@CNXTTARGET@.rules
fi
fi
diff -ur hsfmodem-7.68.00.12x86_64full.orig/scripts/rccnxt.in hsfmodem-7.68.00.12x86_64full/scripts/rccnxt.in
--- hsfmodem-7.68.00.12x86_64full.orig/scripts/rccnxt.in 2008-08-01 21:22:36.000000000 +0000
+++ hsfmodem-7.68.00.12x86_64full/scripts/rccnxt.in 2008-08-01 21:23:20.000000000 +0000
@@ -1,63 +1,12 @@
-#
-# chkconfig: 2345 09 91
-# description: @CNXTDRVDSC@
-#
-### BEGIN INIT INFO
-# Provides: @CNXTTARGET@
-# Should-Start: hotplug coldplug
-# Required-Start: $local_fs
-# Required-Stop: $network
-# Default-Start: 3 5
-# Default-Stop: 0 1 2 6
-# Description: Start @CNXTDRVDSC@
-### END INIT INFO
-if [ -e /etc/runlevels ]; then
- begincmd="ebegin"
- endcmd="eend"
-else
- begincmd="echo"
- endcmd="/bin/true"
-fi
-
-
-start()
-{
- ${begincmd} "Starting @CNXTDRVDSC@"
+start() {
+ ebegin "Starting @CNXTDRVDSC@"
@CNXTSBINDIR@/@CNXTTARGET@config --rcstart
- ${endcmd} 0
+ eend 0
}
-stop()
-{
- ${begincmd} "Stopping @CNXTDRVDSC@"
+stop() {
+ ebegin "Stopping @CNXTDRVDSC@"
@CNXTSBINDIR@/@CNXTTARGET@config --rcstop
- ${endcmd} 0
+ eend 0
}
-
-restart()
-{
- stop
- start
-}
-
-if [ ! -e /etc/runlevels ]; then
- case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart|force-reload|reload)
- restart
- ;;
- status)
- exit 3
- ;;
- *)
- echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
- exit 1
- ;;
- esac
-fi
|