You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
590 B

#!/bin/bash
# This is the login shell you use in /etc/passwd
# It is a wrapper around tim, because otherwise all
# arguments passed by SSH will be quoted and
# interpreted as a single argument only by getopts
setup()
{
export LC_ALL=C
MY_PATH="`dirname \"$0\"`"
MY_PATH="`( cd \"$MY_PATH\" && pwd )`"
. $MY_PATH/tim-common
}
setup
$MY_PATH/tim $@
# Here as a reminder for a possible later version that
# drops the -c argument
#COMMAND=`echo $@ | awk '{ print $2 }'`
#PARAMS=`echo $@ | awk '{ print substr($0, index($0,$3)) }'`
#tim ${COMMAND} ${PARAMS}