Bagaimana Menginstall driver modem Smartlink di Fedora Core 6

Notes for FC6:

(1) comment out line 46 in file /slmodem-2.9.11-20061021/drivers/amrmo_init.c
/* #include */
(2) comment out line 14 in file /ungrab-winmodem/ungrab-winmodem.c
/* #include */
This is needed in order for drivers to compile.
(3) add as a single line to /etc/modprobe.conf
/* for automation/autoloading of slmodemd, */
install slamr modprobe –ignore-install ungrab-winmodem ; modprobe
–ignore-install slamr; test -e /dev/slamr0 || (/bin/mknod -m 660
/dev/slamr0 c 242 0 2>/dev/null && chgrp uucp /dev/slamr0)

(4) for successful autoloading of slmodemd do the following
[[email protected] ~]# cp /slmodem-2.9.X/scripts/slmodemd /etc/rc.d/init.d/
[[email protected] ~]# cd /etc/rc.d/init.d/
[[email protected] init.d]# chmod +x slmodemd

add the lines modprobe ungrab-winmodem, and modrobe slamr

/* start() procedure from slmodemd script /etc/rc.d/init.d/slmodemd
start() {
modprobe ungrab-winmodem
modprobe slamr
echo -n “Starting SmartLink Modem driver for $SLMODEMD_DEVICE: �
$prog /dev/null 2>/dev/null \
[ $RETVAL -eq 0 ] && success $�$prog startup� || failure $�$prog startup�
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
return $RETVAL
/*** rest of slmodemd file missing ***/

Now we make use of command chkconfig. It takes care of symbolic links automatically.

[[email protected] init.d]# chkconfig –help
chkconfig version 1.3.20 - Copyright (C) 1997-2000 Red
Hat, Inc.
This may be freely redistributed under the terms of
the GNU Public License.

usage: chkconfig –list [name]
chkconfig –add
chkconfig –del
chkconfig [–level ]

[[email protected] init.d]# head -8 slmodemd
# slmodemd: Starts the SmartLink Modem Daemon
# chkconfig: 345 90 10
# description: This is the user space part of the
SmartLink Modem driver
# processname: slmodemd
# config: /etc/sysconfig/slmodem
[[email protected] init.d]#

The chkconfig line & description line must go into
every script that is to go under the control of
chkconfig. The description line seems pretty
self-explanatory. the chkconfig line:

# chkconfig: 345 90 10
| Â Â Â |Â Â Â |
| Â Â Â |Â Â Â priority for kill scripts
| Â Â Â |
|Â Â Â | priority for start scripts
|run levels at which to start service

[[email protected] init.d]# chkconfig slmodemd –add
[[email protected] init.d]# chkconfig slmodemd on
[[email protected] init.d]# cd ..
[[email protected] rc.d]# for i in 0 1 2 3 4 5 6
> do
> ls rc$i.d/*slmodemd*
> done
[[email protected] rc.d]#

[[email protected] rc.d]# chkconfig slmodemd –list
slmodemd 0:off 1:off 2:on 3:on 4:on
5:on 6:off
[[email protected] rc.d]#