Changeset 8571 for 2.0/nanobsd


Ignore:
Timestamp:
Oct 16, 2010, 2:30:47 PM (14 years ago)
Author:
rick
Message:

Move to place where trap will not 'claim' the exit 64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2.0/nanobsd/nanobsd/files/usr/local/sshtun/sshtun.sh

    r8569 r8571  
    2929REMOTEWAIT=`expr 3600 \* 24 \* 365`
    3030
     31# Make sure a port is specified
     32if [ -z "$SSH_FLAGS" ]; then
     33  echo "Usage: $0 <SSH_CLIENT_FLAGS>"
     34  exit 64
     35fi
     36
    3137log() {
    3238  echo `date "+%b %e %T"` ": " $* >> ${LOGFILE}
     
    4955trap "trap_exit" 0 1 2 15
    5056
    51 # Make sure a port is specified
    52 if [ -z "$SSH_FLAGS" ]; then
    53   echo "Usage: $0 <SSH_CLIENT_FLAGS>"
    54   exit 64
    55 fi
    5657
    5758# Main program
Note: See TracChangeset for help on using the changeset viewer.