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

Page 54

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

Image 54
Contents Table of Contents F8-x8664 on the Acer Ferrari 3400LMiF8­x8664 on the Acer Ferrari 3400LMi Introduction VersionQuick reference guide Hardware Status Details Potential pitfalls InstallationGraphical installer Disk sizeIeee 1394 Firewire Hard driveUpgrading the drive Potential problems # time cp ­rp /media/ieee1394disk/430MBfolder ~Configuring Firewire CommentsIn-1 Card reader PC-cardSpecial keys & buttons Configuration procedure Key-codesButton Key-code Default X key symbols Scan-codesLinux key-codes Key-codes revisited WWW= XF86WWW Configure actions CPU & Acpi supportCPU frequency scaling GraphicsSuspend BasicsSimple configuration Dual-HeadRadeon driver Virtual screen size # xrandr ­q Screen 0 minimumXrandr tool Fn-F5 button10.3 3D acceleration Simple benchmark OptimizationOther observations Ntsc or PAL TV-outLoad detection InitializationWireless NIC Touch-padInstalling Wlan Wlan toolsWlan firmware Get started with Wlan Manual wayEssid # iwconfig wlan0 essid Perspektiv Bluetooth Verify installationGUI way Using a phone modem UP Running PscanPrepare the phone Prepare the laptopObex File Transfer 0x1106 Protocol Descriptor List Static configuration Short explanation of the command aboveDynamic routine Gprs AT+CGDATA=PPP,1Sending files KBluetoothInstallation Mouse & keyboardMouse & keyboard Scan for devicesLock screen Configuring IrDA InfraredTransfer files IRQ DMATesting IrDA ModemInstalling daemon SLMODEMDCOUNTRY=SWEDEN SLMODEMDDEVICE=Potential issue ConnectingDisconnecting References System hangF8­x8664 on the Acer Ferrari 3400LMi Appendix a /etc/X11/xorg.conf XAA Appendix B dual­head.sh INTERNAL=LVDSNtsc ACTION=$1­$DEFAULTACTION CURNDX=$CURNDX­$INTNDX CURRENT=$ALLOUT$CURNDX Lvds LVDS+VGA­0 NEXT=$CURRENTInternal internal Tvout Usage Esac Appendix C dun­bind.sh F8­x8664 on the Acer Ferrari 3400LMi $CONFIG RETVAL=0SLMODEMDOPTS=$SLMODEMDOPTS $SLMODEMDDEVICE RETVAL=$? F8­x8664 on the Acer Ferrari 3400LMi