diff options
| author | Mattias Andrée <maandree@operamail.com> | 2013-09-30 19:24:04 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2013-09-30 19:24:04 +0200 |
| commit | 306b06226e645277677274331e664125480d99cc (patch) | |
| tree | b6a6336358e68a6014b2dc9fbbc4b7fb88fc6c36 /got | |
| parent | add gotrc that restarts got if the user line is left empty (diff) | |
| download | gates-of-tartaros-306b06226e645277677274331e664125480d99cc.tar.gz gates-of-tartaros-306b06226e645277677274331e664125480d99cc.tar.bz2 gates-of-tartaros-306b06226e645277677274331e664125480d99cc.tar.xz | |
readd flexibility
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'got')
| -rwxr-xr-x | got | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -27,7 +27,7 @@ export "$@" exec 0<&- exec 1<&- exec 2<&- -exec 0<>"/dev/${tty}" +exec 0<>"@dev@${tty}" exec 1>&0 exec 2>&0 @@ -58,8 +58,8 @@ login_function=_login function _login { if [ ! "${user/@/}" = "${user}" ]; then - export GOT_COMMAND="ssh ${user}" - setsid -c login -p -f sshlogin + export GOT_COMMAND="@ssh@ ${user}" + setsid -c login -p -f @sshlogin@ elif [ "${user::1}" = "-" ]; then stty -icanon -echo -isig -ix{on,off,any} echo $'\e[01;31mNice try! Sleeping for 10 minutes...\e[00m' @@ -73,11 +73,11 @@ function _login # Load OS information and extensions NAME="$(uname -o)" ANSI_COLOR='01;34' # must be exactly ANSI_COLOR as it is defined in /etc/os-release -if [ -f "/etc/os-release" ]; then - . "/etc/os-release" +if [ -f "@etc@os-release" ]; then + . "@etc@os-release" fi -if [ -f "/etc/gotrc" ]; then - . "/etc/gotrc" +if [ -f "@etc@@command@rc" ]; then + . "@etc@@command@rc" fi # Let the user log in |
