#!/bin/ksh #/********************************************************************* # * Project Wireless Communication for Mobile Equipment (WICOME) # * (c) Copyright 2008 # * Company Harman/Becker Automotive Systems GmbH # * All rights reserved # * Secrecy Level STRICTLY CONFIDENTIAL # *-------------------------------------------------------------------*/ #/** # * @file # * @author Peter Gaus # * @brief Script which is executed when the link is available # * for sending and receiving IP packets. # * # * The Point-to-Point Protocol Daemon (pppd) will execute this script # * when the link is available for sending and receiving IP packets # * (that is, IPCP has come up). # * It is executed with the parameters # * @param interface-name # * @param tty-device # * @param speed # * @param local-IP-address # * @param remote-IP-address # * @param ipparam # * # * This script will send the GCF System CALL "NWS_IP_ipUp" to the # * Networking Service (NWS) passing all parameters above. # * # * The DNS addresses by the peer (if any) are passed to the /etc/ppp/ip-up script # * in the environment variables DNS1 and DNS2 # * # * @attention # * Depending on the P4-Client option "LineEnd" it is possible that # * this file has CR/LF endings. # * For QNX it is absolutely necessary to have only LF endings. # * Please ensure before download/flashing this file into targets to # * convert line endings to LF (UNIX). # * Possibilities to convert: # * - UltraEdit: File -> Converstions -> DOS to UNIX # * - Cygwin: dos2unix [input file list...] # * - Perforce: change option "LineEnd" of client to "share" # * # * @see http://www.qnx.com/developers/docs/6.4.0/neutrino/utilities/p/pppd.html # * @see http://netbsd.gw.com/cgi-bin/man-cgi?pppd++NetBSD-4.0 # *********************************************************************/ export PATH=$PATH:/bin:/usr/bin:/sbin:/usr/sbin:/opt/conn/bin: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/usr/lib:/opt/conn/lib: # for debug only # env > /tmp/scp/config # send an event to the ConnMngrService for it is the safes way to get the applied nameservers for this interface. /opt/conn/bin/sendcall -d /dev/scp_pss -e ConnMngrService -n DHCP_CLIENT_IF_UP -p "ifName='$1' ipAddr='$IPLOCAL' snMask='255.0.0.0' gateway='$IPREMOTE' dns1='$DNS1' dns2='$DNS2'"