Changeset a8746e4


Ignore:
Timestamp:
Sep 30, 2011 4:02:02 PM (8 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
6a15d8c
Parents:
2926b173
Message:

updates to i2prouter based upon changes from 3.5.9 → 3.5.12 in tanuki's
src/bin/sh.script.in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/resources/i2prouter

    r2926b173 ra8746e4  
    2323#-----------------------------------------------------------------------------
    2424# These settings can be modified to fit the needs of your application
    25 # Optimized for use with version 3.5.9 of the Wrapper.
     25# Optimized for use with version 3.5.12 of the Wrapper.
    2626
    2727# Paths
     
    233233REALDIR=`dirname "$REALPATH"`
    234234# Normalize the path
    235 REALDIR=`cd ${REALDIR}; pwd`
     235REALDIR=`cd "${REALDIR}"; pwd`
    236236
    237237# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
     
    282282    fi
    283283
     284TREXE="/usr/bin/tr"
     285if [ ! -x "$TREXE" ]
     286then
     287    TREXE="/bin/tr"
     288    if [ ! -x "$TREXE" ]
     289    then
     290        eval echo `gettext 'Unable to locate "tr".'`
     291        eval echo `gettext 'Please report this message along with the location of the command on your system.'`
     292        exit 1
     293    fi
     294fi
     295
     296
    284297# Resolve the os
    285 DIST_OS=`uname -s | tr "[A-Z]" "[a-z]" | tr -d ' '`
     298DIST_OS=`uname -s | $TREXE "[A-Z]" "[a-z]" | $TREXE -d ' '`
    286299case "$DIST_OS" in
    287300    'sunos')
     
    320333else
    321334    DIST_ARCH=
    322     DIST_ARCH=`uname -p 2>/dev/null | tr "[A-Z]" "[a-z]" | tr -d ' '`
     335    DIST_ARCH=`uname -p 2>/dev/null | $TREXE "[A-Z]" "[a-z]" | $TREXE -d ' '`
    323336    if [ "X$DIST_ARCH" = "X" ]
    324337    then
     
    327340    if [ "$DIST_ARCH" = "unknown" ]
    328341    then
    329         DIST_ARCH=`uname -m 2>/dev/null | tr "[A-Z]" "[a-z]" | tr -d ' '`
     342        DIST_ARCH=`uname -m 2>/dev/null | $TREXE "[A-Z]" "[a-z]" | $TREXE -d ' '`
    330343    fi
    331344    case "$DIST_ARCH" in
     
    10821095        exit 1
    10831096    else
    1084         APP_NAME_LOWER=`echo "$APP_NAME" | tr "[A-Z]" "[a-z]"`
     1097        APP_NAME_LOWER=`echo "$APP_NAME" | $TREXE "[A-Z]" "[a-z]"`
    10851098        if [ "$DIST_OS" = "solaris" ] ; then
    10861099            eval echo `gettext 'Detected Solaris:'`
     
    12791292    else
    12801293        stopit "0"
    1281         APP_NAME_LOWER=`echo "$APP_NAME" | tr "[A-Z]" "[a-z]"`
     1294        APP_NAME_LOWER=`echo "$APP_NAME" | $TREXE "[A-Z]" "[a-z]"`
    12821295        if [ "$DIST_OS" = "solaris" ] ; then
    12831296            eval echo `gettext 'Detected Solaris:'`
Note: See TracChangeset for help on using the changeset viewer.