F8­x86_64 on the Acer Ferrari 3400LMi

Appendix D /etc/init.d/slmodemd

#!/bin/sh

#

#Available at http://ferrari.databa.se/3400/f8/slmodemd­sysv­init.sh

#Use slmodemd­sysv­init.sh install to install it.

#

#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/slmodemd

#Source function library.

. /etc/init.d/functions

PROG=slmodemd

RETVAL=0

#Default configuration

SLMODEMD_DEVICE= SLMODEMD_OPTS= SLMODEMD_COUNTRY=SWEDEN USE_ALSA="yes"

#Source configuration CONFIG=/etc/sysconfig/${PROG} if [ ­f $CONFIG ]; then

. $CONFIG

#override default group and permissions if defined in $CONFIG;

#other valid options also can be put into SLMODEMD_OPTS variable

["$GROUP" ] \

&&SLMODEMD_OPTS="$SLMODEMD_OPTS ­­group=$GROUP"

["$PERMS" ] \

&&SLMODEMD_OPTS="$SLMODEMD_OPTS ­­perm=$PERMS"

fi

#Do not try to start on a kernel which does not support it if [ $USE_ALSA != "yes" ]; then

grep ­q 'slamr\.o' /lib/modules/`uname ­r`/modules.dep exit 0

fi

if [ $USE_ALSA = "yes" ]; then SLMODEMD_OPTS="$SLMODEMD_OPTS ­­alsa"

else

SLMODEMD_OPTS="$SLMODEMD_OPTS $SLMODEMD_DEVICE"

fi

start() {

54

Page 54
Image 54
Acer 3400LMI manual RETVAL=0, $Config, Slmodemdopts=$Slmodemdopts $Slmodemddevice